This project is mirrored from Pull mirroring updated .
  1. 27 Mar, 2008 1 commit
  2. 21 Mar, 2008 2 commits
    • Duncan Coutts's avatar
      Add Text instances for Version and VersionRange · 66bb76be
      Duncan Coutts authored
      The instance for Version is in the Text module itself because the
      Version type is defined in base. This avoids an orphan instance.
    • Duncan Coutts's avatar
      Add Text class for displaying and parsing values · 86ac8140
      Duncan Coutts authored
      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...