Closed tfausak closed 9 years ago
Thanks for the report. @DanBurton Can you look into this?
Yep. Looks like we need a lower bound constraint on Parsec, or I can rewrite that particular parser.
The function's pretty short:
endOfLine :: (Stream s m Char) => ParsecT s u m Char
endOfLine = newline <|> crlf <?> "new-line"
How about conditionally including it?
This should now be resolved with 0.0.0.2 on Hackage, can you confirm?
Unfortunately it still fails.
$ cabal install stackage-cli-0.0.0.2
...
[2 of 2] Compiling Main ( main/Purge.hs, dist/build/stackage-purge/stackage-purge-tmp/Main.o )
main/Purge.hs:104:25: Not in scope: ‘crlf’
cabal: Error: some packages failed to install:
stackage-cli-0.0.0.2 failed during the building phase. The exception was:
ExitFailure 1
Whoops, sorry about that.
I tested on my machine this time:
$ git clone git@github.com:fpco/stackage-cli
$ cd stackage-cli
$ cabal sandbox init # you can skip this part
$ cabal install --constrait 'parsec<3.1.6'
@snoyberg can you double check?
Looks good to me, just compiled with parsec-3.1.5. Please go ahead and release.
Uploaded 0.0.0.3 to hackage. @tfausak it should at least make it past these parsec errors now. Can you confirm?
:+1: That did the trick. Thank you for the fast fix!
I tried to install version 0.0.0 on OS X 10.10.3 with GHC 7.8.3 and Cabal 1.22.2.0. It complains that
endOfLine
is not in scope.Here is the offending line: https://github.com/fpco/stackage-cli/blob/0.0.0/main/Purge.hs#L107. The
endOfLine
parser comes from Text.Parsec.Char. I don't think it's available in parsec 3.1.5, which Cabal decided to use.