Add Text class for displaying and parsing values
This is intended to replace all these showFoo read/parseFoo functions we have all over the place. It's like the Read/Show classes but uses a half decent parser and pretty printer: class Text a where disp :: a -> Doc parse :: ReadP a This patch just adds the class and an instance for Bool, replacing the parseBool function used in a few places. More to follow...
Showing
- Cabal.cabal 1 addition, 0 deletionsCabal.cabal
- Distribution/PackageDescription/Parse.hs 6 additions, 4 deletionsDistribution/PackageDescription/Parse.hs
- Distribution/ParseUtils.hs 1 addition, 5 deletionsDistribution/ParseUtils.hs
- Distribution/Simple/Command.hs 3 additions, 1 deletionDistribution/Simple/Command.hs
- Distribution/Text.hs 33 additions, 0 deletionsDistribution/Text.hs
Loading
Please register or sign in to comment