Giter Club home page Giter Club logo

blog's People

Contributors

5outh avatar alexfmpe avatar c-lewis avatar cblp avatar chreekat avatar cipherwraith avatar etrepum avatar franklinchen avatar ggreif avatar jb55 avatar joerixaop avatar lambda-fairy avatar maxgabriel avatar mbenke avatar mboes avatar mightybyte avatar mineo avatar ocharles avatar penteract avatar philderbeast avatar pseudonom avatar psub avatar qrilka avatar timjb avatar tomjaguarpaw avatar tristancacqueray avatar ulfsauer0815 avatar vaibhavsagar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

blog's Issues

"Deriving" post: "type MiniIoF = Free MiniIoF" doesn't compile

The first example in 24 Days of GHC Extensions: Deriving doesn't seem to compile.

λ> :set -package free
package flags have changed, resetting and loading new packages...

λ> import Control.Monad.Free

λ> :set -XDeriveFunctor

λ> :{
|> data MiniIoF a = Terminate
|>               | PrintLine String a
|>               | ReadLine (String -> a)
|>               deriving Functor
|> 
|> type MiniIoF = Free MiniIoF
|> :}

<interactive>:10:1: error:
    Multiple declarations of ‘MiniIoF’
    Declared at: <interactive>:5:1
                 <interactive>:10:1

Was the second MiniIoF definition supposed to be named MiniIoM, perhaps?

DNS fails

Trying to hit blog.ocharles.org.uk:

blog.ocharles.org.uk’s DNS address could not be found.

Typo in list of monoids

… if we change our functions to instead to a list of these monoidal values.

There’s something missing here, I think?

how to fix "stack build" error?

hi.

cd /usr/local
git clone https://github.com/ocharles/blog ocharles-blog
cd ocharles-blog

root@AR:/usr/local/ocharles-blog# stack init
root@AR:/usr/local/ocharles-blog# stack build
it shows:
...
While building package wai-app-static-3.1.6.1 using:
/root/.stack/setup-exe-cache/i386-linux/setup-Simple-Cabal-1.24.0.0-ghc-8.0.1 --builddir=.stack-work/dist/i386-linux/Cabal-1.24.0.0 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /usr/local/ocharles-blog/.stack-work/logs/wai-app-static-3.1.6.1.log

Configuring wai-app-static-3.1.6.1...
Building wai-app-static-3.1.6.1...
Preprocessing library wai-app-static-3.1.6.1...
[1 of 9] Compiling WaiAppStatic.Types ( WaiAppStatic/Types.hs, .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/WaiAppStatic/Types.o )
[2 of 9] Compiling Util             ( Util.hs, .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/Util.o )
[3 of 9] Compiling WaiAppStatic.Listing ( WaiAppStatic/Listing.hs, .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/WaiAppStatic/Listing.o )

/tmp/stack10300/wai-app-static-3.1.6.1/WaiAppStatic/Listing.hs:67:34: warning: [-Wname-shadowing]
    This binding for ‘pieces’ shadows the existing binding
      bound at WaiAppStatic/Listing.hs:27:16

/tmp/stack10300/wai-app-static-3.1.6.1/WaiAppStatic/Listing.hs:120:24: warning: [-Wunused-local-binds]
    Defined but not used: ‘isFile’
[4 of 9] Compiling WaiAppStatic.Storage.Filesystem ( WaiAppStatic/Storage/Filesystem.hs, .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/WaiAppStatic/Storage/Filesystem.o )
[5 of 9] Compiling WaiAppStatic.Storage.Embedded.Runtime ( WaiAppStatic/Storage/Embedded/Runtime.hs, .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/WaiAppStatic/Storage/Embedded/Runtime.o )
[6 of 9] Compiling WaiAppStatic.Storage.Embedded.TH ( WaiAppStatic/Storage/Embedded/TH.hs, .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/WaiAppStatic/Storage/Embedded/TH.o )

/tmp/stack10300/wai-app-static-3.1.6.1/WaiAppStatic/Storage/Embedded/TH.hs:10:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[7 of 9] Compiling WaiAppStatic.Storage.Embedded ( WaiAppStatic/Storage/Embedded.hs, .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/WaiAppStatic/Storage/Embedded.o )
[8 of 9] Compiling Network.Wai.Application.Static ( Network/Wai/Application/Static.hs, .stack-work/dist/i386-linux/Cabal-1.24.0.0/build/Network/Wai/Application/Static.o )
<command line>: can't load .so/.DLL for: /root/.stack/snapshots/i386-linux/lts-7.1/8.0.1/lib/i386-linux-ghc-8.0.1/random-1.1-54KmMHXjttlERYcr1mvsAe/libHSrandom-1.1-54KmMHXjttlERYcr1mvsAe-ghc8.0.1.so (/root/.stack/snapshots/i386-linux/lts-7.1/8.0.1/lib/i386-linux-ghc-8.0.1/random-1.1-54KmMHXjttlERYcr1mvsAe/libHSrandom-1.1-54KmMHXjttlERYcr1mvsAe-ghc8.0.1.so: undefined symbol: timezm1zi6zi0zi1_DataziTimeziClockziCTimespec_getCTimespec1_closure)

root@AR:/usr/local/ocharles-blog#

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.