Compilation problem using GHC 7.4.2 #3

Closed
gatoatigrado opened this Issue Jan 15, 2013 · 3 comments

Comments

Projects
None yet
3 participants

I'm getting a difficult-to-diagnose compilation issue, using GHC 7.4.2. (git version be4545c). Here's the compilation output,

gatoatigrado@oliver:~/sandbox/oss/th-orphans> cabal configure
Resolving dependencies...
Configuring th-orphans-0.6...
gatoatigrado@oliver:~/sandbox/oss/th-orphans> cabal build
Building th-orphans-0.6...
Preprocessing library th-orphans-0.6...
[1 of 1] Compiling Language.Haskell.TH.Instances ( src/Language/Haskell/TH/Instances.hs, dist/build/Language/Haskell/TH/Instances.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.4.0.1 ... linking ... done.
Loading package deepseq-1.3.0.1 ... linking ... done.
Loading package containers-0.4.2.1 ... linking ... done.
Loading package pretty-1.1.1.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package th-lift-0.5.5 ... linking ... done.

src/Language/Haskell/TH/Instances.hs:96:3:gatoatigrado@oliver:~/sandbox/oss/th-orphans> 

and here's a the versions of dependencies installed, from ghc-pkg,

/usr/lib64/ghc-7.4.2/package.conf.d
   base-4.5.1.0
/home/gatoatigrado/.ghc/x86_64-linux-7.4.2/package.conf.d
   template-haskell-2.8.0.0
   th-lift-0.5.5

Let me know how I can help in getting you more helpful debug information.

Collaborator

bmillwood commented Jan 15, 2013

GHC 7.4.2 comes with template-haskell 2.7.0.0. I'd advise you to stick to that, and remove the one you've installed locally. TH is really too wired-in to upgrade separately from GHC, I think.

The behaviour you're seeing is odd, but too odd for me to really track down.

Owner

mgsloan commented Jan 16, 2013

That is a weird error message. Maybe a bug in deriveLiftMany?

Maybe try changing the end of the file to something like?

                 , ''ClassInstance

                 , ''InlineSpec
                 , ''Kind
])

Just guessing that your template-haskell thinks it's 2.8.0.0, but looks more like 2.7.0.0

Owner

mgsloan commented Feb 11, 2015

Closing this as it's an old issue. Reopen if it's still a problem!

mgsloan closed this Feb 11, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment