Fwd: Error compiling transformers-base-0.4.1 (debian 64 bits, ghc-7.4.2)

Thank you Sjoerd,
Unfortunately this does not work.
I think the problem is linked to the evaluation of the condition (in
Base.hs)
#if !MIN_VERSION_base(4,4,0) && HS_TRANSFORMERS_BASE__ORPHANS
Just as a test, I modified the file and added the following lines
A. negation of min_version
#if *!*MIN_VERSION_base(4,4,0)
rgfyfgruyfgreuy -- making sure the compilation fails
#endif
B
#if MIN_VERSION_base(4,4,0)
rgfyfgruyfgreuy -- making sure the compilation fails
#endif
In both case the compilations failed (cabal clean, configure, build). That
is, it seems that the #if always evaluate to true...
I am surely missing something here...
Regards
J-C
On Thu, May 9, 2013 at 4:13 PM, Sjoerd Visscher
There's a flag to turn it off, does that work? Try cabal install transformers-base -f-OrphanInstances
Sjoerd
On May 9, 2013, at 2:47 PM, jean-christophe mincke < jeanchristophe.mincke@gmail.com> wrote:
Hello Café
I am running into problems when installing transformers-base-0.4.1.
Has anyone an idea about what is going on?
REM : this is a "brand new" debian install, I have just install ghc, cabal install cabal-install etc.
Thank you
very much
J-C
cabal install transformers-base Resolving dependencies... Downloading transformers-base-0.4.1... Configuring transformers-base-0.4.1... Preprocessing library transformers-base-0.4.1... Building transformers-base-0.4.1... [1 of 1] Compiling Control.Monad.Base ( src/Control/Monad/Base.hs, dist/build/Control/Monad/Base.o )
src/Control/Monad/Base.hs:63:10: Duplicate instance declarations: instance Applicative (L.ST http://l.st/ s) -- Defined at src/Control/Monad/Base.hs:63:10 instance Applicative (L.ST http://l.st/ s) -- Defined in `Control.Applicative'
src/Control/Monad/Base.hs:67:10: Duplicate instance declarations: instance Applicative (S.ST http://s.st/ s) -- Defined at src/Control/Monad/Base.hs:67:10 instance Applicative (S.ST http://s.st/ s) -- Defined in `Control.Applicative' cabal: Error: some packages failed to install: transformers-base-0.4.1 failed during the building phase. The exception was: ExitFailure 1 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hello again,
After some more investigation, it seems that conditional compilation does
not work properly.
All pragmas such as
#if some-cabal-defined-macro (...)
always evaluate to true.
I made sure to have cpphs installed but that did not solve my problem.
Any idea?
Thank you
Regards
J-C
---------- Forwarded message ----------
From: jean-christophe mincke
There's a flag to turn it off, does that work? Try cabal install transformers-base -f-OrphanInstances
Sjoerd
On May 9, 2013, at 2:47 PM, jean-christophe mincke < jeanchristophe.mincke@gmail.com> wrote:
Hello Café
I am running into problems when installing transformers-base-0.4.1.
Has anyone an idea about what is going on?
REM : this is a "brand new" debian install, I have just install ghc, cabal install cabal-install etc.
Thank you
very much
J-C
cabal install transformers-base Resolving dependencies... Downloading transformers-base-0.4.1... Configuring transformers-base-0.4.1... Preprocessing library transformers-base-0.4.1... Building transformers-base-0.4.1... [1 of 1] Compiling Control.Monad.Base ( src/Control/Monad/Base.hs, dist/build/Control/Monad/Base.o )
src/Control/Monad/Base.hs:63:10: Duplicate instance declarations: instance Applicative (L.ST http://l.st/ s) -- Defined at src/Control/Monad/Base.hs:63:10 instance Applicative (L.ST http://l.st/ s) -- Defined in `Control.Applicative'
src/Control/Monad/Base.hs:67:10: Duplicate instance declarations: instance Applicative (S.ST http://s.st/ s) -- Defined at src/Control/Monad/Base.hs:67:10 instance Applicative (S.ST http://s.st/ s) -- Defined in `Control.Applicative' cabal: Error: some packages failed to install: transformers-base-0.4.1 failed during the building phase. The exception was: ExitFailure 1 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (1)
-
jean-christophe mincke