mainland-pretty 0.2.1 → 0.2.2
raw patch · 2 files changed
+96/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e) => Pretty (a, b, c, d, e)
+ Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f) => Pretty (a, b, c, d, e, f)
+ Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f, Pretty g) => Pretty (a, b, c, d, e, f, g)
+ Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f, Pretty g, Pretty h) => Pretty (a, b, c, d, e, f, g, h)
+ Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f, Pretty g, Pretty h, Pretty i) => Pretty (a, b, c, d, e, f, g, h, i)
+ Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f, Pretty g, Pretty h, Pretty i, Pretty j) => Pretty (a, b, c, d, e, f, g, h, i, j)
+ Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f, Pretty g, Pretty h, Pretty i, Pretty j, Pretty k) => Pretty (a, b, c, d, e, f, g, h, i, j, k)
+ Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f, Pretty g, Pretty h, Pretty i, Pretty j, Pretty k, Pretty l) => Pretty (a, b, c, d, e, f, g, h, i, j, k, l)
+ Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f, Pretty g, Pretty h, Pretty i, Pretty j, Pretty k, Pretty l, Pretty m) => Pretty (a, b, c, d, e, f, g, h, i, j, k, l, m)
+ Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f, Pretty g, Pretty h, Pretty i, Pretty j, Pretty k, Pretty l, Pretty m, Pretty n) => Pretty (a, b, c, d, e, f, g, h, i, j, k, l, m, n)
+ Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f, Pretty g, Pretty h, Pretty i, Pretty j, Pretty k, Pretty l, Pretty m, Pretty n, Pretty o) => Pretty (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
+ Text.PrettyPrint.Mainland: instance [overlap ok] Pretty ()
Files
- Text/PrettyPrint/Mainland.hs +95/−3
- mainland-pretty.cabal +1/−1
Text/PrettyPrint/Mainland.hs view
@@ -703,17 +703,109 @@ instance Pretty a => Pretty [a] where ppr = pprList +instance Pretty () where+ ppr () =+ tuple []+ instance (Pretty a, Pretty b) => Pretty (a, b) where- ppr (a, b) = tuple [ppr a, ppr b]+ ppr (a, b) =+ tuple [ppr a, ppr b] instance (Pretty a, Pretty b, Pretty c) => Pretty (a, b, c) where- ppr (a, b, c) = tuple [ppr a, ppr b, ppr c]+ ppr (a, b, c) =+ tuple [ppr a, ppr b, ppr c] instance (Pretty a, Pretty b, Pretty c, Pretty d) => Pretty (a, b, c, d) where- ppr (a, b, c, d) = tuple [ppr a, ppr b, ppr c, ppr d]+ ppr (a, b, c, d) =+ tuple [ppr a, ppr b, ppr c, ppr d]++instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e)+ => Pretty (a, b, c, d, e) where+ ppr (a, b, c, d, e) =+ tuple [ppr a, ppr b, ppr c, ppr d, ppr e]++instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e,+ Pretty f)+ => Pretty (a, b, c, d, e, f) where+ ppr (a, b, c, d, e, f) =+ tuple [ppr a, ppr b, ppr c, ppr d, ppr e,+ ppr f]++instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e,+ Pretty f, Pretty g)+ => Pretty (a, b, c, d, e, f, g) where+ ppr (a, b, c, d, e, f, g) =+ tuple [ppr a, ppr b, ppr c, ppr d, ppr e,+ ppr f, ppr g]++instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e,+ Pretty f, Pretty g, Pretty h)+ => Pretty (a, b, c, d, e, f, g, h) where+ ppr (a, b, c, d, e, f, g, h) =+ tuple [ppr a, ppr b, ppr c, ppr d, ppr e,+ ppr f, ppr g, ppr h]++instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e,+ Pretty f, Pretty g, Pretty h, Pretty i)+ => Pretty (a, b, c, d, e, f, g, h, i) where+ ppr (a, b, c, d, e, f, g, h, i) =+ tuple [ppr a, ppr b, ppr c, ppr d, ppr e,+ ppr f, ppr g, ppr h, ppr i]++instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e,+ Pretty f, Pretty g, Pretty h, Pretty i, Pretty j)+ => Pretty (a, b, c, d, e, f, g, h, i, j) where+ ppr (a, b, c, d, e, f, g, h, i, j) =+ tuple [ppr a, ppr b, ppr c, ppr d, ppr e,+ ppr f, ppr g, ppr h, ppr i, ppr j]++instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e,+ Pretty f, Pretty g, Pretty h, Pretty i, Pretty j,+ Pretty k)+ => Pretty (a, b, c, d, e, f, g, h, i, j, k) where+ ppr (a, b, c, d, e, f, g, h, i, j, k) =+ tuple [ppr a, ppr b, ppr c, ppr d, ppr e,+ ppr f, ppr g, ppr h, ppr i, ppr j,+ ppr k]++instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e,+ Pretty f, Pretty g, Pretty h, Pretty i, Pretty j,+ Pretty k, Pretty l)+ => Pretty (a, b, c, d, e, f, g, h, i, j, k, l) where+ ppr (a, b, c, d, e, f, g, h, i, j, k, l) =+ tuple [ppr a, ppr b, ppr c, ppr d, ppr e,+ ppr f, ppr g, ppr h, ppr i, ppr j,+ ppr k, ppr l]++instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e,+ Pretty f, Pretty g, Pretty h, Pretty i, Pretty j,+ Pretty k, Pretty l, Pretty m)+ => Pretty (a, b, c, d, e, f, g, h, i, j, k, l, m) where+ ppr (a, b, c, d, e, f, g, h, i, j, k, l, m) =+ tuple [ppr a, ppr b, ppr c, ppr d, ppr e,+ ppr f, ppr g, ppr h, ppr i, ppr j,+ ppr k, ppr l, ppr m]++instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e,+ Pretty f, Pretty g, Pretty h, Pretty i, Pretty j,+ Pretty k, Pretty l, Pretty m, Pretty n)+ => Pretty (a, b, c, d, e, f, g, h, i, j, k, l, m, n) where+ ppr (a, b, c, d, e, f, g, h, i, j, k, l, m, n) =+ tuple [ppr a, ppr b, ppr c, ppr d, ppr e,+ ppr f, ppr g, ppr h, ppr i, ppr j,+ ppr k, ppr l, ppr m, ppr n]++instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e,+ Pretty f, Pretty g, Pretty h, Pretty i, Pretty j,+ Pretty k, Pretty l, Pretty m, Pretty n, Pretty o)+ => Pretty (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) where+ ppr (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) =+ tuple [ppr a, ppr b, ppr c, ppr d, ppr e,+ ppr f, ppr g, ppr h, ppr i, ppr j,+ ppr k, ppr l, ppr m, ppr n, ppr o] instance Pretty a => Pretty (Maybe a) where pprPrec _ Nothing = empty
mainland-pretty.cabal view
@@ -1,5 +1,5 @@ name: mainland-pretty-version: 0.2.1+version: 0.2.2 cabal-version: >= 1.6 license: BSD3 license-file: LICENSE