idontgetoutmuch / binary-low-level

A strict version of the Get monad from the binary package.
Other
3 stars 6 forks source link

Fails to install in cabal sandbox due to build failure with GHC 7.10.1 #2

Closed atilaneves closed 8 years ago

atilaneves commented 9 years ago

With this file:

name:                test
version:             0.1.0.0
license:             BSD3
license-file:        LICENSE
author:              Foo Bar
maintainer:          foo.bar@gmail.com
build-type:          Simple
cabal-version:       >=1.10

executable test
  main-is:             Main.hs
  build-depends:       base
                     , binary-strict
  hs-source-dirs:      src
  default-language:    Haskell2010

cabal install --only-dependencies fails with:

Resolving dependencies...
Notice: installing into a sandbox located at
/home/foobar/coding/haskell/experiments/cabal_binary_strict/.cabal-sandbox
Configuring binary-strict-0.4.7...
Building binary-strict-0.4.7...
Failed to install binary-strict-0.4.7
Build log ( /home/foobar/coding/haskell/experiments/cabal_binary_strict/.cabal-sandbox/logs/binary-strict-0.4.7.log ):
Configuring binary-strict-0.4.7...
Building binary-strict-0.4.7...
Preprocessing library binary-strict-0.4.7...

src/Data/Binary/Strict/BitGet.hs:2:16: Warning:
-fglasgow-exts is deprecated: Use individual extensions instead

src/Data/Binary/Strict/Get.hs:2:16: Warning:
-fglasgow-exts is deprecated: Use individual extensions instead

src/Data/Binary/Strict/IncrementalGet.hs:2:16: Warning:
-fglasgow-exts is deprecated: Use individual extensions instead

src/Data/Binary/BitPut.hs:39:8:
Could not find module ‘Control.Monad.Trans’
It is a member of the hidden package ‘mtl-2.2.1@mtl_6HevPxzlSPX058IyhMPnF5’.
Perhaps you need to add ‘mtl’ to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.

src/Data/Binary/BitPut.hs:40:8:
Could not find module ‘Control.Monad.Error’
It is a member of the hidden package ‘mtl-2.2.1@mtl_6HevPxzlSPX058IyhMPnF5’.
Perhaps you need to add ‘mtl’ to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
binary-strict-0.4.7 failed during the building phase. The exception was:
ExitFailure 1

Adding mtl to the dependencies makes no difference.

beojan commented 9 years ago

It appears it needs to be updated to build with mtl-2.2 (you'll see that newer versions depend on mtl-2.1.*)

kevinkirkup commented 8 years ago

Any idea what needs to be updated to support the new version of mtl.

idontgetoutmuch commented 8 years ago

I have it working with mtl-2.2 but only on ghc 7.10.2. I'll make a release. If anyone wants it to work on other versions, please send me a PR.