GenericPretty 0.1.2 → 0.1.3
raw patch · 3 files changed
+8/−9 lines, 3 filesdep ~ghc
Dependency ranges changed: ghc
Files
- GenericPretty.cabal +4/−4
- README +2/−2
- Text/PrettyPrint/GenericPretty.hs +2/−3
GenericPretty.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented. -Version: 0.1.2 +Version: 0.1.3 -- A short (one-line) description of the package. Synopsis: A generic, derivable, haskell pretty printer. @@ -23,7 +23,7 @@ This requires the use of the new GHC.Generics features: <http://www.haskell.org/haskellwiki/Generics>. These seem to be present in the GHC HEAD development snapshots >= 7.1.20110601. . - For more info and examples of usage please see the README file and the API. + For more info and examples of usage please see the README file and the API at <http://haggismcmutton.github.com/GenericPretty/> -- URL for the project homepage or repository. Homepage: https://github.com/HaggisMcMutton/GenericPretty @@ -61,8 +61,8 @@ Exposed-modules: Text.PrettyPrint.GenericPretty -- Packages needed in order to build this package. - Build-depends: base >= 3 && < 5, ghc-prim, ghc >= 7.0 - --ghc >= 7.1.20110601 + Build-depends: base >= 3 && < 5, ghc-prim, ghc >= 7.1.20110601 + -- Modules not exported by this package. -- Other-modules:
README view
@@ -69,8 +69,8 @@ The above 'Tree' example can be found in 'TestSuite/SimpleTest.hs'. More involved examples integrated with QuickCheck can be found in 'TestSuite/Tests.hs'. -Further information can be found in the haddock generated API at dist/doc/html -and in the source code itself. +Further information can be found in the API at +http://haggismcmutton.github.com/GenericPretty/ and in the source code itself. =============================================================================== Please send any questions/suggestions to:
Text/PrettyPrint/GenericPretty.hs view
@@ -32,9 +32,8 @@ outList :: Int -> [a] -> SDoc outList n xs = brackets (fsep (punctuate comma (map (out n) xs))) --- | default out method, converts the type into a sum of products and passes it on to the generic --- pretty printing functions, finally it concatenates all of the SDoc's --- method user must use when implementing 'Out' by saying 'out = genOut' +-- | default, generic, 'out' method. +-- User must use this when implementing 'Out' by typing 'out = genOut' genOut :: (Generic a ,GOut (Rep a)) => Int -> a -> SDoc genOut n x = sep $ out1 (from x) Pref n False