pretty-types 0.3.0.1 → 0.4.0.0
raw patch · 4 files changed
+8/−7 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Data.Type.Pretty: showPretty :: forall proxy (t :: k). PrettyTypeShow (ToPretty t) => proxy t -> String
+ Data.Type.Pretty: showPretty :: forall k proxy (t :: k). PrettyTypeShow (ToPretty t) => proxy t -> String
- Data.Type.Pretty: type (<$$-->) l r = 'PrettyInfix 'PrettyNewline l ( 'PrettyIndent 2 r)
+ Data.Type.Pretty: type (<$$-->) l r = 'PrettyInfix 'PrettyNewline l ('PrettyIndent 2 r)
- Data.Type.Pretty: type PrettyHigh docs = PrettyMany 'PrettyNewline docs
+ Data.Type.Pretty: type PrettyHigh docs = PrettyMany 'PrettyNewline docs
- Data.Type.Pretty: type PrettyWide docs = PrettyMany 'PrettySpace docs
+ Data.Type.Pretty: type PrettyWide docs = PrettyMany 'PrettySpace docs
- Data.Type.Pretty: type PutBits x = 'PrettyNat 'PrettyUnpadded 'PrettyPrecise 'PrettyBit x
+ Data.Type.Pretty: type PutBits x = 'PrettyNat 'PrettyUnpadded 'PrettyPrecise 'PrettyBit x
- Data.Type.Pretty: type PutBits16 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 16) 'PrettyBit x
+ Data.Type.Pretty: type PutBits16 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 16) 'PrettyBit x
- Data.Type.Pretty: type PutBits32 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 32) 'PrettyBit x
+ Data.Type.Pretty: type PutBits32 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 32) 'PrettyBit x
- Data.Type.Pretty: type PutBits64 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 64) 'PrettyBit x
+ Data.Type.Pretty: type PutBits64 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 64) 'PrettyBit x
- Data.Type.Pretty: type PutBits8 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 8) 'PrettyBit x
+ Data.Type.Pretty: type PutBits8 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 8) 'PrettyBit x
- Data.Type.Pretty: type PutHeX x = 'PrettyNat 'PrettyUnpadded 'PrettyPrecise 'PrettyHexU x
+ Data.Type.Pretty: type PutHeX x = 'PrettyNat 'PrettyUnpadded 'PrettyPrecise 'PrettyHexU x
- Data.Type.Pretty: type PutHeX16 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 4) 'PrettyHexU x
+ Data.Type.Pretty: type PutHeX16 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 4) 'PrettyHexU x
- Data.Type.Pretty: type PutHeX32 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 8) 'PrettyHexU x
+ Data.Type.Pretty: type PutHeX32 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 8) 'PrettyHexU x
- Data.Type.Pretty: type PutHeX64 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 16) 'PrettyHexU x
+ Data.Type.Pretty: type PutHeX64 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 16) 'PrettyHexU x
- Data.Type.Pretty: type PutHeX8 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 2) 'PrettyHexU x
+ Data.Type.Pretty: type PutHeX8 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 2) 'PrettyHexU x
- Data.Type.Pretty: type PutHex x = 'PrettyNat 'PrettyUnpadded 'PrettyPrecise 'PrettyHex x
+ Data.Type.Pretty: type PutHex x = 'PrettyNat 'PrettyUnpadded 'PrettyPrecise 'PrettyHex x
- Data.Type.Pretty: type PutHex16 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 4) 'PrettyHex x
+ Data.Type.Pretty: type PutHex16 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 4) 'PrettyHex x
- Data.Type.Pretty: type PutHex32 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 8) 'PrettyHex x
+ Data.Type.Pretty: type PutHex32 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 8) 'PrettyHex x
- Data.Type.Pretty: type PutHex64 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 16) 'PrettyHex x
+ Data.Type.Pretty: type PutHex64 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 16) 'PrettyHex x
- Data.Type.Pretty: type PutHex8 x = 'PrettyNat 'PrettyUnpadded ( 'PrettyPrecision 2) 'PrettyHex x
+ Data.Type.Pretty: type PutHex8 x = 'PrettyNat 'PrettyUnpadded ('PrettyPrecision 2) 'PrettyHex x
- Data.Type.Pretty: type PutNat x = 'PrettyNat 'PrettyUnpadded 'PrettyPrecise 'PrettyDec x
+ Data.Type.Pretty: type PutNat x = 'PrettyNat 'PrettyUnpadded 'PrettyPrecise 'PrettyDec x
- Data.Type.Pretty: type PutNatW width x = 'PrettyNat ( 'PrettyPadded width) 'PrettyPrecise 'PrettyDec x
+ Data.Type.Pretty: type PutNatW width x = 'PrettyNat ('PrettyPadded width) 'PrettyPrecise 'PrettyDec x
- Data.Type.Pretty: type PutStr str = 'PrettySymbol 'PrettyUnpadded 'PrettyPrecise str
+ Data.Type.Pretty: type PutStr str = 'PrettySymbol 'PrettyUnpadded 'PrettyPrecise str
- Data.Type.Pretty: type PutStrW width str = 'PrettySymbol ( 'PrettyPadded width) ( 'PrettyPrecision width) str
+ Data.Type.Pretty: type PutStrW width str = 'PrettySymbol ('PrettyPadded width) ('PrettyPrecision width) str
Files
- .gitignore +3/−2
- pretty-types.cabal +3/−3
- src/Data/Type/Pretty.hs +1/−1
- stack.yaml +1/−1
.gitignore view
@@ -9,6 +9,7 @@ TAGS /.idea/ /.dir-locals.el- src/highlight.js-src/style.css+src/style.css/dist*+/result*+/dist*
pretty-types.cabal view
@@ -1,5 +1,6 @@+cabal-version: >=1.22 name: pretty-types-version: 0.3.0.1+version: 0.4.0.0 synopsis: A small pretty printing DSL for complex types. description: Please see README.md homepage: https://github.com/sheyll/pretty-types#readme@@ -7,7 +8,7 @@ license-file: LICENSE author: Sven Heyll maintainer: sven.heyll@gmail.com-copyright: 2016-2019 Sven Heyll+copyright: 2016-2021 Sven Heyll category: Text build-type: Simple extra-source-files: README.md@@ -15,7 +16,6 @@ , .travis.yml , .gitignore , ChangeLog.md-cabal-version: >=1.10 library hs-source-dirs: src
src/Data/Type/Pretty.hs view
@@ -119,7 +119,7 @@ -- | Pretty print either types of kind 'PrettyType' or any other type with a -- 'ToPretty' instance. showPretty- :: forall proxy (t :: k) . PrettyTypeShow (ToPretty t)+ :: forall k proxy (t :: k) . PrettyTypeShow (ToPretty t) => proxy t -- ^ A proxy to the type to print. A 'ToPretty' instance for t must exists. -> String showPretty _ = snd $ evalRWS (ptShow (Proxy :: Proxy (ToPretty t))) 0 AtBeginningOfLine
stack.yaml view
@@ -1,4 +1,4 @@-resolver: lts-13.3+resolver: lts-16.31 packages: - '.' extra-deps: []