pretty-class (empty) → 0.1
raw patch · 3 files changed
+36/−0 lines, 3 filesdep +basedep +prettysetup-changed
Dependencies added: base, pretty
Files
- Setup.hs +2/−0
- Text/PrettyPrint/Class.hs +8/−0
- pretty-class.cabal +26/−0
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ Text/PrettyPrint/Class.hs view
@@ -0,0 +1,8 @@+module Text.PrettyPrint.Class+ ( Pretty(pretty)+ ) where++import Text.PrettyPrint (Doc)++class Pretty a where+ pretty :: a -> Doc
+ pretty-class.cabal view
@@ -0,0 +1,26 @@+Name: pretty-class+Version: 0.1+Synopsis: Extremely simple Pretty class+Description: I was unclear how to create instances of Language.Haskell.Pretty.Pretty because+ the pretty method is not exported. So here is a copy.+Homepage: https://src.seereason.com/pretty-class+License: BSD3+Author: David Fox+Maintainer: David Fox <dsf@seereason.com>+Category: Text+Build-type: Simple+Cabal-version: >=1.6++source-repository head+ Type: darcs+ Location: http://src.seereason.com/pretty-class++Library+ ghc-options: -Wall -O2++ Exposed-modules:+ Text.PrettyPrint.Class++ Build-depends:+ base >= 4 && < 5,+ pretty