[Haskell-cafe] problem with boolean splicing in templates in ghc 6.10.1

Leonidas Fegaras fegaras at cse.uta.edu
Tue Nov 11 15:16:21 EST 2008


Seems that boolean splicing in haskell templates in ghc 6.10.1 does not
work correctly. If you do:

$((\b -> [| b |]) True)

you get the error:

Can't find interface-file declaration for data constructor GHC.Base.True
      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

It seems that GHC.Base.True is now GHC.Bool.True, but the splicing code
still generates the former.
Leonidas Fegaras




More information about the Haskell-Cafe mailing list