Skip to content

GHC 8.0.2-rc2 template Haskell interface file issue

When I try to build language-lua as found on Hackage with GHC 8.0.2-rc2 I get the following error. This package works with 8.0.1. I'm using the latest release of cabal-install/Cabal and alex-3.2.1

src/Language/Lua/Annotated/Lexer.x:149:14: error:
    • Can't find interface-file declaration for variable AlexTools.runA
        Probable cause: bug in .hi-boot file, or inconsistent .hi file
        Use -ddump-if-trace to get an idea of which file caused the error
    • In the expression:
        AlexTools.runA x_a28iM inp_a28iQ x_a28iK x_a28iL mode_a28iP
      In the expression:
        case
            AlexTools.runA x_a28iM inp_a28iQ x_a28iK x_a28iL mode_a28iP
        of {
          (mode'_a28iR, ts_a28iS)
            -> (ts_a28iS ++ (go_a28iO mode'_a28iR x_a28iK)) }
      In a case alternative:
          AlexToken x_a28iK x_a28iL x_a28iM
            -> case
                   AlexTools.runA x_a28iM inp_a28iQ x_a28iK x_a28iL mode_a28iP
               of {
                 (mode'_a28iR, ts_a28iS)
                   -> (ts_a28iS ++ (go_a28iO mode'_a28iR x_a28iK)) }
Edited by glguy
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information