Git Product home page Git Product logo

coroutine-object's Introduction

coroutine-object's People

Contributors

wavewave avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

coroutine-object's Issues

Build error with Hackage coroutine-object-0.2.0.0

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.

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.