coroutine-object
Deprecated
Please look at http://github.com/wavewave/hoodle and coroutine-object
in that repo.
oop-like coroutine process
License: Other
Deprecated
Please look at http://github.com/wavewave/hoodle and coroutine-object
in that repo.
I tried to build coroutine-object-0.2.0.0 from Hackage using cabal-install, but got the following error:
[10 of 10] Compiling Control.Monad.Trans.Crtn.Logger.Simple ( src/Control/Monad/Trans/Crtn/Logger/Simple.hs, dist/build/Control/Monad/Trans/Crtn/Logger/Simple.o )
src/Control/Monad/Trans/Crtn/Logger/Simple.hs:21:36:
Couldn't match type ‘t1’
with ‘Control.Monad.Trans.Free.FreeT
(Rqst (Res LogOp) (Arg LogOp)) m0 b0’
‘t1’ is untouchable
inside the constraints (i ~ [Char], o ~ ())
bound by a pattern with constructor
WriteLog :: LogOp String (),
in a case alternative
at src/Control/Monad/Trans/Crtn/Logger/Simple.hs:21:17-24
‘t1’ is a rigid type variable bound by
the inferred type of f :: t -> Arg LogOp -> t1
at src/Control/Monad/Trans/Crtn/Logger/Simple.hs:19:9
Expected type: Control.Monad.Trans.Free.FreeT
(Rqst (Res LogOp) (Arg LogOp)) m0 ()
-> Control.Monad.Trans.Free.FreeT
(Rqst (Res LogOp) (Arg LogOp)) m0 b0
-> t1
Actual type: Control.Monad.Trans.Free.FreeT
(Rqst (Res LogOp) (Arg LogOp)) m0 ()
-> Control.Monad.Trans.Free.FreeT
(Rqst (Res LogOp) (Arg LogOp)) m0 b0
-> Control.Monad.Trans.Free.FreeT
(Rqst (Res LogOp) (Arg LogOp)) m0 b0
Relevant bindings include
f :: t -> Arg LogOp -> t1
(bound at src/Control/Monad/Trans/Crtn/Logger/Simple.hs:19:9)
In a stmt of a 'do' block:
lift (scribe ("log number " ++ show n ++ " : " ++ msg))
In the expression:
do { lift (scribe ("log number " ++ show n ++ " : " ++ msg));
req' <- request (Res WriteLog ());
f (n + 1) req' }
In a case alternative:
Arg WriteLog msg
-> do { lift (scribe ("log number " ++ show n ++ " : " ++ msg));
req' <- request (Res WriteLog ());
f (n + 1) req' }
I'm using GHC 7.8.2 and cabal 1.20.0.0, OS is Arch Linux.
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.