prettyprinter-ansi-terminal 1 → 1.0.1
raw patch · 2 files changed
+9/−9 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Text.Prettyprint.Doc.Render.Terminal: Background :: Layer
+ Data.Text.Prettyprint.Doc.Render.Terminal: Bold :: AnsiTerminal
+ Data.Text.Prettyprint.Doc.Render.Terminal: Color :: Layer -> Intensity -> Color -> AnsiTerminal
+ Data.Text.Prettyprint.Doc.Render.Terminal: Dull :: Intensity
+ Data.Text.Prettyprint.Doc.Render.Terminal: Foreground :: Layer
+ Data.Text.Prettyprint.Doc.Render.Terminal: Italicized :: AnsiTerminal
+ Data.Text.Prettyprint.Doc.Render.Terminal: Underlined :: AnsiTerminal
+ Data.Text.Prettyprint.Doc.Render.Terminal: Vivid :: Intensity
+ Data.Text.Prettyprint.Doc.Render.Terminal: data Intensity
+ Data.Text.Prettyprint.Doc.Render.Terminal: data Layer
Files
prettyprinter-ansi-terminal.cabal view
@@ -1,8 +1,8 @@ name: prettyprinter-ansi-terminal-version: 1+version: 1.0.1 cabal-version: >= 1.10 category: User Interfaces, Text-synopsis: ANSI terminal backend for the modern, extensible and well-documented prettyprinter.+synopsis: ANSI terminal backend for the »prettyprinter« package. description: See README.md license: BSD2 license-file: LICENSE.md@@ -33,9 +33,9 @@ build-depends:- base < 127+ base >= 4.7 && < 5 , ansi-terminal >= 0.4.0 && < 0.7- , text+ , text == 1.2.* , prettyprinter < 1.1 if impl(ghc >= 8.0)@@ -46,7 +46,7 @@ hs-source-dirs: test/Doctest main-is: Main.hs build-depends:- base < 127+ base >= 4.7 && < 5 , doctest >= 0.9 ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N default-language: Haskell2010
src/Data/Text/Prettyprint/Doc/Render/Terminal.hs view
@@ -7,15 +7,15 @@ -- | Render 'SimpleDocStream' in a terminal. module Data.Text.Prettyprint.Doc.Render.Terminal ( -- * Styling- AnsiTerminal, Color(..),+ AnsiTerminal(..), Color(..), Intensity(..), Layer(..), - -- ** Font color+ -- ** Font color convenience definitions color, colorDull, --- -- ** Background color+ -- ** Background color convenience definitions bgColor, bgColorDull, - -- ** Font style+ -- ** Font style convenience definitions bold, italics, underline, -- * Conversion to ANSI-infused 'Text'