haskell-src-exts

How to show progress of `stack haddock`?

百般思念 提交于 2019-12-24 08:19:01
问题 Ran stack haddock haskell-src-exts I get: haskell-src-exts-1.20.3: configure haskell-src-exts-1.20.3: build haskell-src-exts-1.20.3: haddock And I've been waiting around for an hour but it still hasn't finished. Adding --haddock-arguments --verbosity=3 doesn't seem to change anything. It would be really nice to have some sort of progress indicator so I can know if it's stuck or just slow. $ stack --version Version 1.9.1, Git revision f9d0042c141660e1d38f797e1d426be4a99b2a3c (6168 commits) x86

Parsing UnicodeSyntax with haskell-src-exts

混江龙づ霸主 提交于 2019-12-09 03:29:21
问题 I have a Haskell source file which using Unicode syntax: {-# LANGUAGE UnicodeSyntax #-} succ' :: Int → Int succ' = succ main :: IO () main = print $ succ' 1 This parses and runs fine with GHC. Additionally, stylish-haskell and hlint (both based on haskell-src-exts) can read this file without any trouble. However, when I try to parse it myself using haskell-src-exts: import Language.Haskell.Exts (parseModule) main = do x <- readFile "test.hs" print $ parseModule x I get the error message: