packages feed

ansi-wl-pprint 0.6.2 → 0.6.3

raw patch · 2 files changed

+7/−2 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Text.PrettyPrint.ANSI.Leijen: column :: (Int -> Doc) -> Doc
- Text.PrettyPrint.ANSI.Leijen: instance (Pretty a) => Pretty (Maybe a)
- Text.PrettyPrint.ANSI.Leijen: instance (Pretty a) => Pretty [a]
- Text.PrettyPrint.ANSI.Leijen: nesting :: (Int -> Doc) -> Doc
+ Text.PrettyPrint.ANSI.Leijen: column, nesting :: (Int -> Doc) -> Doc
+ Text.PrettyPrint.ANSI.Leijen: instance IsString Doc
+ Text.PrettyPrint.ANSI.Leijen: instance Pretty a => Pretty (Maybe a)
+ Text.PrettyPrint.ANSI.Leijen: instance Pretty a => Pretty [a]
- Text.PrettyPrint.ANSI.Leijen: pretty :: (Pretty a) => a -> Doc
+ Text.PrettyPrint.ANSI.Leijen: pretty :: Pretty a => a -> Doc
- Text.PrettyPrint.ANSI.Leijen: prettyList :: (Pretty a) => [a] -> Doc
+ Text.PrettyPrint.ANSI.Leijen: prettyList :: Pretty a => [a] -> Doc

Files

Text/PrettyPrint/ANSI/Leijen.hs view
@@ -150,6 +150,7 @@  import Control.Monad (when) +import Data.String (IsString(..)) import Data.Maybe (isNothing, fromMaybe, catMaybes) import Data.Monoid @@ -764,11 +765,15 @@   -- MCB: Not in the wl-pprint package that we forked from. I added this when the "pretty" package--- from base gained a Monoid instance (<http://thread.gmane.org/gmane.comp.lang.haskell.libraries/14031>):+-- from base gained a Monoid instance (<http://hackage.haskell.org/trac/ghc/ticket/4378>): instance Monoid Doc where     mempty = empty     mappend = (<>)     mconcat = hcat++-- MCB: also added when "pretty" got the corresponding instances:+instance IsString Doc where+    fromString = text   -- | The empty document is, indeed, empty. Although @empty@ has no
ansi-wl-pprint.cabal view
@@ -1,5 +1,5 @@ Name:                ansi-wl-pprint-Version:             0.6.2+Version:             0.6.3 Cabal-Version:       >= 1.2 Category:            User Interfaces, Text Synopsis:            The Wadler/Leijen Pretty Printer for colored ANSI terminal output