show-prettyprint 0.2.1 → 0.2.2
raw patch · 3 files changed
+13/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Text.Show.Prettyprint: prettyShowDoc :: Show a => a -> Doc ann
Files
- CHANGELOG.md +7/−2
- show-prettyprint.cabal +1/−1
- src/Text/Show/Prettyprint.hs +5/−0
CHANGELOG.md view
@@ -1,6 +1,11 @@-# 0.2.1+# 0.2.{1,2} -Add function+Add functions to prettify to `Doc` instead of just supporting `String`,++```haskell+prettifyToDoc :: String -> Doc ann+prettyShowDoc :: Show a => a -> Doc ann+``` # 0.2.0.1
show-prettyprint.cabal view
@@ -1,5 +1,5 @@ name: show-prettyprint-version: 0.2.1+version: 0.2.2 synopsis: Robust prettyprinter for output of auto-generated Show instances description: See README.md
src/Text/Show/Prettyprint.hs view
@@ -26,6 +26,7 @@ prettifyToDoc, prettyShow,+ prettyShowDoc, prettyPrint, ) where @@ -64,3 +65,7 @@ prettifyToDoc s = case parseShowString s of Success x -> x Failure _ -> pretty s++-- | 'prettifyToDoc' with the 'show' baked in.+prettyShowDoc :: Show a => a -> Doc ann+prettyShowDoc = prettifyToDoc . show