pretty-show 1.6.10 → 1.6.11
raw patch · 4 files changed
+41/−5 lines, 4 filesdep ~pretty-showPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: pretty-show
API changes (from Hackage documentation)
+ Text.Show.Pretty: pPrint :: Show a => a -> IO ()
- Text.Show.Pretty: prettyVal :: PrettyVal a => a -> Value
+ Text.Show.Pretty: prettyVal :: (PrettyVal a, GDump (Rep a), Generic a) => a -> Value
Files
- CHANGELOG +10/−0
- Text/Show/Pretty.hs +6/−1
- dist/build/Text/Show/Parser.hs +22/−1
- pretty-show.cabal +3/−3
CHANGELOG view
@@ -1,3 +1,13 @@+Changes in 1.6.11+ * Add `pPrint`, which is `putStrLn . ppShow`++Changes in 1.6.10+ * Increase the precedence of unary minus++Changes in 1.6.9+ * Relax parsing of atoms, so that we can support things like the show+ instance of StdGen (e.g., [ 123 45, 786 10 ])+ Changes in 1.6.8.2: * Correct license in srouce files.
Text/Show/Pretty.hs view
@@ -20,7 +20,7 @@ , valToHtmlPage -- * Values using the 'Show' class- , parseValue, reify, ppDoc, ppShow+ , parseValue, reify, ppDoc, ppShow, pPrint -- * Values using the 'PrettyVal' class , dumpDoc, dumpStr, PrettyVal(..)@@ -64,6 +64,11 @@ Just v -> valToDoc v Nothing -> text txt where txt = show a++-- | Pretty print a generic value to stdout. This is particularly useful in the+-- GHCi interactive environment.+pPrint :: Show a => a -> IO ()+pPrint = putStrLn . ppShow -- | Render a value in the 'PrettyVal' class to a 'Doc'. -- The benefit of this function is that 'PrettyVal' instances may
dist/build/Text/Show/Parser.hs view
@@ -9,8 +9,9 @@ import qualified Data.Array as Happy_Data_Array import qualified GHC.Exts as Happy_GHC_Exts import Control.Applicative(Applicative(..))+import Control.Monad (ap) --- parser produced by Happy Version 1.19.4+-- parser produced by Happy Version 1.19.5 newtype HappyAbsSyn t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29 t30 t31 = HappyAbsSyn HappyAny #if __GLASGOW_HASKELL__ >= 607@@ -784,6 +785,7 @@ mkValue vs = Con "" vs {-# LINE 1 "templates/GenericTemplate.hs" #-} {-# LINE 1 "templates/GenericTemplate.hs" #-}+{-# LINE 1 "<built-in>" #-} {-# LINE 1 "<command-line>" #-} {-# LINE 11 "<command-line>" #-} # 1 "/usr/include/stdc-predef.h" 1 3 4@@ -814,6 +816,25 @@ ++++++++++++++++++{-# LINE 11 "<command-line>" #-}+{-# LINE 1 "/home/diatchki/tools/ghc-7.10.3/lib/ghc-7.10.3/include/ghcversion.h" #-}
pretty-show.cabal view
@@ -1,5 +1,5 @@ name: pretty-show-version: 1.6.10+version: 1.6.11 category: Text synopsis: Tools for working with derived `Show` instances and generic@@ -59,11 +59,11 @@ hs-source-dirs: bin build-depends: base >= 4.5 && < 5,- pretty-show == 1.6.10+ pretty-show == 1.6.11 ghc-options: -Wall source-repository head type: git- location: git://github.com/yav/pretty-show.git+ location: https://github.com/yav/pretty-show.git