【发布时间】:2011-07-13 11:40:27
【问题描述】:
我正在看这个项目http://community.haskell.org/~ndm/supero/
我已经下载并编译了程序,可以在包含的示例上使用它。但是我在我的源代码上试过了,看起来这个程序只理解 Haskell 的一个子集。
我得到了这样的东西:
超级编译器:未处理 fromDecl:PatBind (SrcLoc {srcFilename = "unknown.hs", srcLine = 15, srcColumn = 1}) (PTuple [PVar (Ident "width"),PVar (Ident "height")]) Nothing (UnGuardedRhs (Tuple [Lit) (Int 7),Lit (Int 6)])) (BDecls [])
代码可在此处获得https://github.com/phuc/Score4-haskell/blob/master/Main.hs
如何让 GHC 输出 Supero 理解的 Haskell 类型?
非常感谢。
【问题讨论】:
标签: haskell optimization ghc