Problems with validating template-haskell

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Problems with validating template-haskell

Jan Stolarek
I have problems with validating my changes in template-haskell, file Language/Haskell/Th/Syntax.hs. I added isTrue# function in the import:

import GHC.Base         ( Int(..), Int#, (<#), (==#), isTrue# )

And later on I'm using isTrue#. However, when stage1 compiler tries to compile Syntax.hs, validation fails (due to -Werror):

libraries/template-haskell/Language/Haskell/TH/Syntax.hs:19:1: Warning:
    The import of ?Int#, Int, ==#, <#?
    from module ?GHC.Base? is redundant

The module obviously uses mentioned operators and data types. I wonder what did I miss. Ideas anyone?