Closed y-usuzumi closed 8 years ago
Sorry, compile is error:
.HaskellEmacs.hs:217:17:
Constructor ‘EVar’ should have 1 argument, but has been given 2
In the pattern: EVar _ qname
In an equation for ‘exportFunction’:
exportFunction (EVar _ qname) = unQualifiedName qname
Hi. After a brief look, the issue locates here:
exportFunction :: ExportSpec -> Maybe Name
exportFunction (EVar qname {- originally (Evar _ qname) -}) = unQualifiedName qname
exportFunction (EModuleContents _) = Nothing
exportFunction _ = Nothing
according to https://hackage.haskell.org/package/haskell-src-exts-1.17.1/docs/Language-Haskell-Exts-Syntax.html
I'm fairly new to Haskell. Is it due to some recent version bumps of haskell-src-exts that breaks compatibility?
Yes, it's due to the api change in haskell-src-exts. It's fixed with your PR. Thanks!
Hi. I added haskell-emacs, haskell-emacs-base and haskell-emacs-text to the additional-packages list. I ran haskell-emacs-init and answered yes for all questions. Looks fine. The example Matrix compiles. Then I tried to eval
(Matrix.identity 3)
in the scratch buffer, and got the error:Did I miss something?