when i c2hs or stack build bz2:
[root@localhost src]# c2hs -o Codec/Compression/BZip/Foreign/Common.hs Codec/Compression/BZip/Foreign/Common.chs
c2hs: Prelude.head: empty list
CallStack (from HasCallStack):
error, called at libraries/base/GHC/List.hs:1644:3 in base:GHC.List
errorEmptyList, called at libraries/base/GHC/List.hs:87:11 in base:GHC.List
badHead, called at libraries/base/GHC/List.hs:83:28 in base:GHC.List
head, called at src/Language/C/Parser/Lexer.x:468:53 in language-c-0.9.3-AGIXBdjoRqt3hZDWQGEe6P:Language.C.Parser.Lexer
when i c2hs or stack build bz2: [root@localhost src]# c2hs -o Codec/Compression/BZip/Foreign/Common.hs Codec/Compression/BZip/Foreign/Common.chs c2hs: Prelude.head: empty list CallStack (from HasCallStack): error, called at libraries/base/GHC/List.hs:1644:3 in base:GHC.List errorEmptyList, called at libraries/base/GHC/List.hs:87:11 in base:GHC.List badHead, called at libraries/base/GHC/List.hs:83:28 in base:GHC.List head, called at src/Language/C/Parser/Lexer.x:468:53 in language-c-0.9.3-AGIXBdjoRqt3hZDWQGEe6P:Language.C.Parser.Lexer