bjpop / language-python

A parser for Python 2.x and 3.x written in Haskell
157 stars 45 forks source link

Build failure with GHC 7.8 #68

Closed andreasabel closed 2 years ago

andreasabel commented 2 years ago
$ cabal install language-python -w ghc-7.8.4
Resolving dependencies...
Build profile: -w ghc-7.8.4 -O1
In order, the following will be built (use -v for more details):
 - alex-3.2.6 (exe:alex) (requires build)
 - monads-tf-0.1.0.3 (lib:monads-tf) (requires build)
 - utf8-string-1.0.2 (lib) (requires build)
 - transformers-0.5.6.2 (lib:transformers) (requires build)
 - mtl-2.2.2 (lib) (requires build)
 - happy-1.20.0 (exe:happy) (requires build)
 - language-python-0.5.8 (lib) (requires download & build)
...
Building library for language-python-0.5.8..
...
[ 7 of 23] Compiling Language.Python.Common.PrettyAST ( src/Language/Python/Common/PrettyAST.hs, dist/build/Language/Python/Common/PrettyAST.o )

src/Language/Python/Common/PrettyAST.hs:127:107:
    Not in scope: ‘<$>’
    Perhaps you meant one of these:
      ‘<+>’ (imported from Language.Python.Common.Pretty),
      ‘<>’ (imported from Language.Python.Common.Pretty)
Error: cabal: Failed to build language-python-0.5.8.

Please update the bounds on base to base >= 4.8 && < 5: https://github.com/bjpop/language-python/blob/dfa446c76f8073dac44159169a619eb61922e11c/language-python/language-python.cabal#L30 I did this update as revision to version 0.5.8.

bjpop commented 2 years ago

Sorry for the delay on this.

It is still an issue, I only have GHC 8.10.7 on my machine.

Everything builds and runs correctly on GHC 8.10.7 for me.

If you still need a change please submit a pull request.

andreasabel commented 2 years ago

@bjpop: Here you go: #70