dalaing / cofun Goto Github PK
View Code? Open in Web Editor NEWCofun with Cofree Comonads
Cofun with Cofree Comonads
Hey @dalaing, thanks for writing the great tutorial, I've learned a lot!
Do you think you'll be finishing the final part about pairing coproducts over the network? That would be very helpful if so! :)
This is original link which is not working:
https://yow.eventer.com/yow-lambda-jam-2015-1305/cofun-with-cofree-comonads-by-david-laing-1891
I askeda about it too on twitter, no answer yet
https://twitter.com/safareli/status/900811951181357056
I was having trouble building cofun. This is the output on my console
21:53:47 - ~/Programming/Haskell/cofun/code/adder
hjs@bblfish[0] (master)$ cabal install
Resolving dependencies...
Notice: installing into a sandbox located at
/Volumes/Dev/Programming/Haskell/cofun/code/sandbox
Configuring adder-0.1.0.0...
Building adder-0.1.0.0...
Failed to install adder-0.1.0.0
Build log ( /Volumes/Dev/Programming/Haskell/cofun/code/sandbox/logs/adder-0.1.0.0.log ):
Configuring adder-0.1.0.0...
Building adder-0.1.0.0...
Preprocessing library adder-0.1.0.0...
[ 2 of 15] Compiling AdderService.Functors ( src/AdderService/Functors.hs, dist/dist-sandbox-f1021f34/build/AdderService/Functors.o )
src/AdderService/Functors.hs:89:8:
Type indexes must match class instance head
Found ‘AdderF’ but expected ‘m’
In the type instance declaration for ‘ClientReq’
In the instance declaration for ‘ToNetworkClient AdderF m’
src/AdderService/Functors.hs:90:8:
Type indexes must match class instance head
Found ‘AdderF’ but expected ‘m’
In the type instance declaration for ‘ClientRes’
In the instance declaration for ‘ToNetworkClient AdderF m’
src/AdderService/Functors.hs:105:8:
Type indexes must match class instance head
Found ‘CoAdderF’ but expected ‘m’
In the type instance declaration for ‘InterpreterReq’
In the instance declaration for ‘ToNetworkInterpreter CoAdderF m’
src/AdderService/Functors.hs:106:8:
Type indexes must match class instance head
Found ‘CoAdderF’ but expected ‘m’
In the type instance declaration for ‘InterpreterRes’
In the instance declaration for ‘ToNetworkInterpreter CoAdderF m’
cabal: Error: some packages failed to install:
adder-0.1.0.0 failed during the building phase. The exception was:
ExitFailure 1
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.