2
votes

I'm so tired of trying to stay current with Haskell. I figured I'd upgrade to 7.8.3 and based on previous experiences, I just blew away the entire 7.6.3 system, including the .cabal folder of course. I have the sublimehaskell package so needed to reinstall libraries that it needs. When I got to hdevtools, I got the errors

src/Info.hs:130:59: Not in scope: data constructor ‘GHC.MatchGroup’ Perhaps you meant ‘GHC.DocGroup’ (imported from GHC)

src/Info.hs:164:5: Not in scope: ‘Pretty.showDocWith’ Perhaps you meant ‘Pretty.showDoc’ (imported from Pretty)

src/Info.hs:229:12: Not in scope: type constructor or class ‘PprTyThing.PrintExplicitForalls’

What's a simple programmer to do?

(OS X 10.9.5)

2
things like this will happen in lot's of other langs. as well - have a look at the Python2 vs Python3 story - Random Dev

2 Answers

3
votes

This Reddit thread is on nearly the same subject. In particular the top answer suggests a GitHub fork of SublimeHaskell which does not use the "largely abandoned" hdevtools.

3
votes

Newer versions of GHC (7.7 and 7.8) introduced changes to the GHC API, resulting in a break of compatibility with hdevtools 1.0.5. This is referenced on the hdevtools tracker as issue #24. The typical course of action in this case would be to wait for a new version to come out. Unfortunately in this case, while there seems to be a fix around it appears that the maintainer is not available. This leaves you with these choices:

However this is half of the work, as that would leave you with a working hdevtools when you really want sublimehaskell. Sadly I am not familiar enough with it to give you any hints. Still, once hdevtools is present a configuration system would do well to skip trying to build it. In which case you’re good to go.