ocharles / blog Goto Github PK
View Code? Open in Web Editor NEWThe contents of ocharles.org.uk/blog
License: BSD 3-Clause "New" or "Revised" License
The contents of ocharles.org.uk/blog
License: BSD 3-Clause "New" or "Revised" License
I couldn’t find a repo mentioned in the blog post (nor indirectly via the linked hackage package)
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#
… if we change our functions to instead to a list of these monoidal values.
There’s something missing here, I think?
I copied and pasted the code at https://ocharles.org.uk/blog/posts/2015-09-07-announcing-sdl2.html and it doesn't compile with sdl2-2.0.0.
Trying to hit blog.ocharles.org.uk
:
blog.ocharles.org.uk’s DNS address could not be found.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.