bennofs / haskell-generate

Type-safe library for generating haskell source code
Other
28 stars 8 forks source link

haskell-generate-0.2.3 does not compile #3

Closed peti closed 8 years ago

peti commented 8 years ago

Citing from http://hydra.cryp.to/build/1425993/log/raw:

src/Language/Haskell/Generate/Monad.hs:66:87:
    Couldn't match expected type ‘Maybe Binds’ with actual type ‘Binds’
    In the fourth argument of ‘Alt’, namely ‘(BDecls [])’
    In the expression:
      Alt noLoc p (UnGuardedRhs $ runExpression a') (BDecls [])

src/Language/Haskell/Generate/Monad.hs:214:27:
    Couldn't match expected type ‘QName -> ExportSpec’
                with actual type ‘ExportSpec’
    The function ‘EVar’ is applied to two arguments,
    but its type ‘QName -> ExportSpec’ has only one
    In the expression: EVar NoNamespace (UnQual name)
    In an equation for ‘exportFun’:
        exportFun (FunRef name) = EVar NoNamespace (UnQual name)

src/Language/Haskell/Generate/Monad.hs:214:32:
    Couldn't match expected type ‘QName’ with actual type ‘Namespace’
    In the first argument of ‘EVar’, namely ‘NoNamespace’
    In the expression: EVar NoNamespace (UnQual name)

src/Language/Haskell/Generate/Monad.hs:223:91:
    Couldn't match expected type ‘Maybe Binds’ with actual type ‘Binds’
    In the second argument of ‘($)’, namely ‘BDecls []’
    In the expression:
      Match noLoc name [] Nothing (UnGuardedRhs $ runExpression body)
      $ BDecls []
bennofs commented 8 years ago

Thanks for the report. I'll look into this soon.