[Hackage] #155: show . readPackageDescription /= id

#155: show . readPackageDescription /= id ----------------------------------------+----------------------------------- Reporter: kolmodin@dtek.chalmers.se | Owner: nominolo Type: defect | Status: new Priority: normal | Milestone: Component: Cabal | Version: HEAD Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.6 Platform: Linux | ----------------------------------------+----------------------------------- Hi, if find the following a bit confusing: Read and then print a cabal file (old style without configurations is enough): {{{ pkg <- readPackageDescription normal "foo.cabal" -- :: IO GenericPackageDescription print pkg }}} That output is then not parsable by readPackageDescription, error: {{{ Test.hs: foo-copy.cabal26: Parse of field 'executable' failed: }}} It seems that the Show instance of GenericPackageDescription generates a string where the executables' entries cannot be parsed again. Cheers, Lennart K -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/155 Hackage http://example.com/ My example project
participants (1)
-
Hackage