Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on GHC >= 7.10 #14

Open
rudymatela opened this issue Aug 18, 2017 · 1 comment
Open

Fix build on GHC >= 7.10 #14

rudymatela opened this issue Aug 18, 2017 · 1 comment

Comments

@rudymatela
Copy link
Contributor

Lazy SmallCheck 2012 fails to build under GHC 7.10, see:

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3

$ cabal configure --enable-tests
Resolving dependencies...
Configuring lazysmallcheck2012-1.0.0...

$ cabal build
Building lazysmallcheck2012-1.0.0...
Preprocessing library lazysmallcheck2012-1.0.0...
[1 of 8] Compiling Test.PartialValues ( Test/PartialValues.lhs, dist/build/Test/PartialValues.o )

Test/PartialValues.lhs:149:12:
    No instance for (Applicative BT)
      arising from the superclasses of an instance declaration
    In the instance declaration for ‘Monad BT’

This seems to happen because of the Applicative-Monad Proposal.

By loosening restrictions on the cabal file, the build also fails for GHC 8.0.2.

I may get to work on this in a not-so-distant future, in that case I'll submit a PR.

@Warbo
Copy link

Warbo commented Jun 28, 2018

Just a note that there's already a pull request for this at #13 and I've been happily using this library with GHC 7.10.3 for years (from my own repo at http://chriswarbo.net/git/lazysmallcheck2012 which includes the patch). Never tried with GHC 8.x though ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants