junjihashimoto / test-sandbox-compose

BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

test-sandbox-0.1.0 versus GHC 7.8.4 #1

Closed peti closed 9 years ago

peti commented 9 years ago

Do you think it would be possible to make this package depend on transformers-compat instead of transformers directly in order to enable builds with pre 0.4.x versions of the library such as shipped by GHC 7.8.4?

junjihashimoto commented 9 years ago

Thank you for telling me. You say build error of http://hydra.cryp.to:8080/build/558796/nixlog/1. Changing the package dependency is possible. I think I should do it.

junjihashimoto commented 9 years ago

The modification is done. https://github.com/gree/haskell-test-sandbox/pull/12

peti commented 9 years ago

Very cool, thank you for the quick response! We'll update our build in NixOS once the new version becomes available from Hackage.

junjihashimoto commented 9 years ago

Upload to hackage. https://hackage.haskell.org/package/test-sandbox-0.1.1 I will try to use NixOS.

peti commented 9 years ago

I tried building the latest version, but unfortunately the build fails with the following error:

Configuring test-sandbox-0.1.1...
Warning: 'hs-source-dirs: dist/build/autogen' directory does not exist.
Dependency QuickCheck -any: using QuickCheck-2.7.6
Dependency base ==4.*: using base-4.7.0.2
Dependency bytestring -any: using bytestring-0.10.4.0
Dependency cereal -any: using cereal-0.4.1.1
Dependency containers -any: using containers-0.5.5.1
Dependency data-default -any: using data-default-0.5.3
Dependency directory -any: using directory-1.2.1.0
Dependency filepath -any: using filepath-1.3.0.2
Dependency hastache -any: using hastache-0.6.1
Dependency heredoc -any: using heredoc-0.2.0.0
Dependency hspec -any: using hspec-2.1.4
Dependency hspec-expectations-lifted -any: using
hspec-expectations-lifted-0.5.0
Dependency lifted-base -any: using lifted-base-0.2.3.6
Dependency monad-control -any: using monad-control-1.0.0.4
Dependency monad-loops -any: using monad-loops-0.4.2.1
Dependency mtl -any: using mtl-2.1.3.1
Dependency network -any: using network-2.6.0.2
Dependency process -any: using process-1.2.0.0
Dependency random -any: using random-1.1
Dependency random-shuffle -any: using random-shuffle-0.0.4
Dependency regex-posix -any: using regex-posix-0.95.2
Dependency template-haskell -any: using template-haskell-2.9.0.0
Dependency temporary -any: using temporary-1.2.0.3
Dependency test-sandbox -any: using test-sandbox-0.1.1
Dependency text -any: using text-1.2.0.4
Dependency transformers >=0.2 && <0.5: using transformers-0.3.0.0
Dependency transformers-base -any: using transformers-base-0.4.4
Dependency transformers-compat >=0.3 && <0.5: using
transformers-compat-0.4.0.4
Dependency unix -any: using unix-2.7.0.1
/nix/store/h9y83q2whbqxigp8p83iqqcahs11bhig-ghc-7.8.4/bin/ghc --info
Using Cabal-1.18.1.5 compiled by ghc-7.8
Using compiler: ghc-7.8.4
Using install prefix:
/nix/store/y8w3wd124rm1mjcnldw5m6z9h4849kr7-haskell-test-sandbox-0.1.1
Binaries installed in:
/nix/store/y8w3wd124rm1mjcnldw5m6z9h4849kr7-haskell-test-sandbox-0.1.1/bin
Libraries installed in:
/nix/store/y8w3wd124rm1mjcnldw5m6z9h4849kr7-haskell-test-sandbox-0.1.1/lib/ghc-7.8.4/test-sandbox-0.1.1
Private binaries installed in:
/nix/store/y8w3wd124rm1mjcnldw5m6z9h4849kr7-haskell-test-sandbox-0.1.1/libexec
Data files installed in:
/nix/store/y8w3wd124rm1mjcnldw5m6z9h4849kr7-haskell-test-sandbox-0.1.1/share/x86_64-linux-ghc-7.8.4/test-sandbox-0.1.1
Documentation installed in:
/nix/store/y8w3wd124rm1mjcnldw5m6z9h4849kr7-haskell-test-sandbox-0.1.1/share/doc/x86_64-linux-ghc-7.8.4/test-sandbox-0.1.1
Configuration files installed in:
/nix/store/y8w3wd124rm1mjcnldw5m6z9h4849kr7-haskell-test-sandbox-0.1.1/etc
No alex found
Using ar found on system at:
/nix/store/dg0dxjgg1f9z7n1q9mhpdw8bvygj07a8-binutils-2.23.1/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.8.4 given by user at:
/nix/store/n05yl6h88css26y9s778fs62zd45qmkf-gcc-wrapper-4.8.4/bin/gcc
Using ghc version 7.8.4 found on system at:
/nix/store/h9y83q2whbqxigp8p83iqqcahs11bhig-ghc-7.8.4/bin/ghc
Using ghc-pkg version 7.8.4 found on system at:
/nix/store/h9y83q2whbqxigp8p83iqqcahs11bhig-ghc-7.8.4/bin/ghc-pkg
No greencard found
Using haddock version 2.14.3 found on system at:
/nix/store/h9y83q2whbqxigp8p83iqqcahs11bhig-ghc-7.8.4/bin/haddock
No happy found
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/h9y83q2whbqxigp8p83iqqcahs11bhig-ghc-7.8.4/bin/hpc
Using hsc2hs version 0.67 found on system at:
/nix/store/h9y83q2whbqxigp8p83iqqcahs11bhig-ghc-7.8.4/bin/hsc2hs
Using hscolour version 1.20 found on system at:
/nix/store/4acyx5zypmdimav6w4qsq8ydh12h2kdd-hscolour-1.20.3/bin/HsColour
No hugs found
No jhc found
Using ld found on system at:
/nix/store/n05yl6h88css26y9s778fs62zd45qmkf-gcc-wrapper-4.8.4/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
No pkg-config found
Using ranlib found on system at:
/nix/store/dg0dxjgg1f9z7n1q9mhpdw8bvygj07a8-binutils-2.23.1/bin/ranlib
Using strip found on system at:
/nix/store/dg0dxjgg1f9z7n1q9mhpdw8bvygj07a8-binutils-2.23.1/bin/strip
Using tar found on system at:
/nix/store/l667qns5jf6ww9dcvldj8gqffd21bxkj-gnutar-1.27.1/bin/tar
No uhc found
building
Building test-sandbox-0.1.1...
Preprocessing library test-sandbox-0.1.1...

src/Test/Sandbox/Internals.hs:17:8:
    Could not find module ‘Control.Monad.Except’
    Perhaps you meant
      Control.Monad.Loops (from monad-loops-0.4.2.1)
      Control.Monad.Cont (from mtl-2.1.3.1)
      Control.Monad.Error (from mtl-2.1.3.1)
    Use -v to see a list of the files searched for.
junjihashimoto commented 9 years ago

Thank you for testing build and sorry for not fixing this error. I want to test building this package. How can I lauch development environment easily? Is there NixOS on docker?

peti commented 9 years ago

I have no practical experience with docker, though, so I don't know much about it, but I'm pretty sure that a docker image exists.

junjihashimoto commented 9 years ago

I found root cause of above error. When mtl is lower than 2.2.1, Control.Monad.Except does not exist. So I modify test-sandbox package to use Control.Monad.Error when mtl is lower than 2.2.1. Latest test-sandbox is 0.1.2.

I think it is ok, because mtl-2.1.3.1's build is success on my pc(ubuntu). I do not check this on nixos. (I am studying nix and nix-expression on vagrant.)