Closed cblp closed 8 years ago
Thanks a lot! As you can tell I haven't touched this in a while. It looks like Travis can't compile it though - does it work for you?
Yes, tests are passed for me locally. I use stack test
. We can add stack support travis using http://docs.haskellstack.org/en/stable/travis_ci/
Ah, Travis uses GHC installed in Ubuntu, so it is old a little. The best solution would be to test on different GHC versions, I think.
Should I try to add stack support in this branch?
Specifying base >= 4.8 in the cabal file might be sufficient, since that's when Data.Monoid was added to Prelude. I can't push to your branch, so could you try it out?
Done. I also increased version, because dropping support for base < 4.8 may break something.
Hmm, it's still failing. The tests pass locally for me too, so I'll merge this and try to figure out Travis later. Thanks for the PR!
Ubuntu already has its system base
package, and cabal-install can't install another version.
Could you please release this to Hackage?
Yeah, I'll get to it later today!
You can support older versions of base
without incurring unused import warnings for newer versions of base
by using the following CPP
:
#if MIN_VERSION_base(4,8,0)
#else
import Data.Monoid
#endif
and fix some warnings