ekmett / contravariant

Haskell 98 contravariant functors
http://hackage.haskell.org/package/contravariant
Other
73 stars 24 forks source link

Build with GHC 7.0.x #8

Closed mightybyte closed 9 years ago

mightybyte commented 10 years ago

Any chance we can get this package modified to build with 7.0.x? Travis is giving me this build failure:

https://travis-ci.org/mightybyte/snaplet-postgresql-simple/jobs/35057195#L309

(contravariant is on line 309)

mightybyte commented 10 years ago

You are guarding it with the preprocessor (https://github.com/ekmett/contravariant/blob/master/Data/Functor/Contravariant.hs#L13), but it seems like maybe that check is wrong. It does look like Trustworthy was introduced in 7.2, so maybe the MIN_VERSION checks on that line are causing the problem. I'd try to fix it and send a pull request, but I don't know the purpose of those checks.

glguy commented 9 years ago

Contravariant 1.2.0.1 builds on 7.0.4. Please reopen this issue if you're still having issues.