Skip to content

Commit

Permalink
fixup! Make cabal-install use parsec parser
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Jan 16, 2017
1 parent e426e76 commit b70cb94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cabal-install/Distribution/Client/Targets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ readPackageTarget verbosity = traverse modifyLocation
parseGenericPackageDescriptionMaybe (BS.toStrict bs)
#else
parsePackageDescription' content =
case parsePackageDescription . ignoreBOM . fromUTF8 . BS.Char8.unpack $ content of
case parseGenericPackageDescription . ignoreBOM . fromUTF8 . BS.Char8.unpack $ content of
ParseOk _ pkg -> Just pkg
_ -> Nothing
#endif
Expand Down
2 changes: 1 addition & 1 deletion cabal-install/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ import Distribution.PackageDescription
#ifdef CABAL_PARSEC
import Distribution.PackageDescription.Parsec ( readGenericPackageDescription )
#else
import Distribution.PackageDescription.Parse ( readPackageDescription )
import Distribution.PackageDescription.Parse ( readGenericPackageDescription )
#endif

import Distribution.PackageDescription.PrettyPrint
Expand Down
8 changes: 4 additions & 4 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ extra-deps:
- vector-0.12.0.0
- zlib-0.6.1.1
flags:
Cabal:
parsec: true
cabal-install:
parsec: true
# Cabal:
# parsec: true
# cabal-install:
# parsec: true
time-locale-compat:
old-locale: false
nix:
Expand Down

0 comments on commit b70cb94

Please sign in to comment.