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

Problems building on ghc-7.8.4 #37

Closed
commandodev opened this issue Sep 14, 2016 · 6 comments
Closed

Problems building on ghc-7.8.4 #37

commandodev opened this issue Sep 14, 2016 · 6 comments

Comments

@commandodev
Copy link

Hi,

I have problems building with ghc-7.8.4 on a couple of different environments. First I tried on an old RH box (you probably know the one). I then tried on my nixos box using stack. In both of these cases I get:

/home/ben/dev/haskell/bake/src/General/HTML.hs:76:15:
    No instance for (Eq
                       (WriterT Rope Data.Functor.Identity.Identity a))
      arising from the 'deriving' clause of a data type declaration
    Possible fix:
      use a standalone 'deriving instance' declaration,
        so you can specify the instance context yourself
    When deriving the instance for (Eq (HTML_ a))

/home/ben/dev/haskell/bake/src/General/HTML.hs:76:18:
    No instance for (Ord
                       (WriterT Rope Data.Functor.Identity.Identity a))
      arising from the 'deriving' clause of a data type declaration
    Possible fix:
      use a standalone 'deriving instance' declaration,
        so you can specify the instance context yourself
    When deriving the instance for (Ord (HTML_ a))

This seems to be needing base-4.9.0.0 to work as base-4.7.0.1 doens't have the Ord1 instance for Identity.

The ghc environment on this machine seem... quirky... though.

@commandodev
Copy link
Author

Actually base-4.8 and higher should be high enough.

@ndmitchell
Copy link
Owner

Are you using bake from HEAD or Hackage? I strongly recommend the HEAD version.

You can't mix and match GHC versions and base versions - there's no way to change the base version installed, so I don't see how your base/GHC can get out of alignment. I've just run the buildbot (https://travis-ci.org/ndmitchell/bake) and it successfully compiles on 7.6 to GHC Head (the errors are all due to insufficient doc comments), so I guess the question is what is different with your setup. Which version of transformers do you have? Any chance it is 0.3 or before? If you upgrade to a newer one that should probably work. If that works for you, I'll change the bounds. If not, I can write those instances by hand and we can avoid the transformers-0.4+ dependency.

@commandodev
Copy link
Author

I'll have a look later. BTW how did you get around compiling cryptonite on that special, old red hat box? I'm getting cc1: error: unrecognized command line option "-maes", I assume due to an old gcc...

@ndmitchell
Copy link
Owner

Mostly by asking @vincenthz, I also wrote it down on the JIRA related to Hoogle. I think the magic was something like -fold_toolchain_inliner when configuring cryptonite.

@commandodev
Copy link
Author

I was on transformers-3. I've upgraded to 0.5.2.0 and everything is now working :-)

@ndmitchell
Copy link
Owner

Dependency added. Let me know if you have any other problems.

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