mainland-pretty 0.2.7.1 → 0.2.7.2
raw patch · 3 files changed
+34/−7 lines, 3 filesdep ~basedep ~srclocPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base, srcloc
API changes (from Hackage documentation)
- Text.PrettyPrint.Mainland: instance [overlap ok] (Integral a, Pretty a) => Pretty (Ratio a)
- Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b) => Pretty (a, b)
- Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c) => Pretty (a, b, c)
- Text.PrettyPrint.Mainland: instance [overlap ok] (Pretty a, Pretty b, Pretty c, Pretty d) => Pretty (a, b, c, d)
- 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 k, Pretty v) => Pretty (Map k v)
- Text.PrettyPrint.Mainland: instance [overlap ok] Monoid Doc
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty ()
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Bool
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Char
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Double
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Float
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Int
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Int16
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Int32
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Int64
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Int8
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Integer
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Loc
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Pos
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Text
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Word16
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Word32
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Word64
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty Word8
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty a => Pretty (Maybe a)
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty a => Pretty (Set a)
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty a => Pretty [a]
- Text.PrettyPrint.Mainland: instance [overlap ok] Pretty x => Pretty (L x)
- Text.PrettyPrint.Mainland: instance [overlap ok] Show Doc
+ Text.PrettyPrint.Mainland: instance (Integral a, Pretty a) => Pretty (Ratio a)
+ Text.PrettyPrint.Mainland: instance (Pretty a, Pretty b) => Pretty (a, b)
+ Text.PrettyPrint.Mainland: instance (Pretty a, Pretty b, Pretty c) => Pretty (a, b, c)
+ Text.PrettyPrint.Mainland: instance (Pretty a, Pretty b, Pretty c, Pretty d) => Pretty (a, b, c, d)
+ Text.PrettyPrint.Mainland: instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e) => Pretty (a, b, c, d, e)
+ Text.PrettyPrint.Mainland: instance (Pretty a, Pretty b, Pretty c, Pretty d, Pretty e, Pretty f) => Pretty (a, b, c, d, e, f)
+ Text.PrettyPrint.Mainland: instance (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 (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 (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 (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 (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 (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 (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 (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 (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 (Pretty k, Pretty v) => Pretty (Map k v)
+ Text.PrettyPrint.Mainland: instance Monoid Doc
+ Text.PrettyPrint.Mainland: instance Pretty ()
+ Text.PrettyPrint.Mainland: instance Pretty Bool
+ Text.PrettyPrint.Mainland: instance Pretty Char
+ Text.PrettyPrint.Mainland: instance Pretty Double
+ Text.PrettyPrint.Mainland: instance Pretty Float
+ Text.PrettyPrint.Mainland: instance Pretty Int
+ Text.PrettyPrint.Mainland: instance Pretty Int16
+ Text.PrettyPrint.Mainland: instance Pretty Int32
+ Text.PrettyPrint.Mainland: instance Pretty Int64
+ Text.PrettyPrint.Mainland: instance Pretty Int8
+ Text.PrettyPrint.Mainland: instance Pretty Integer
+ Text.PrettyPrint.Mainland: instance Pretty Loc
+ Text.PrettyPrint.Mainland: instance Pretty Pos
+ Text.PrettyPrint.Mainland: instance Pretty Text
+ Text.PrettyPrint.Mainland: instance Pretty Word16
+ Text.PrettyPrint.Mainland: instance Pretty Word32
+ Text.PrettyPrint.Mainland: instance Pretty Word64
+ Text.PrettyPrint.Mainland: instance Pretty Word8
+ Text.PrettyPrint.Mainland: instance Pretty a => Pretty (Maybe a)
+ Text.PrettyPrint.Mainland: instance Pretty a => Pretty (Set a)
+ Text.PrettyPrint.Mainland: instance Pretty a => Pretty [a]
+ Text.PrettyPrint.Mainland: instance Pretty x => Pretty (L x)
+ Text.PrettyPrint.Mainland: instance Show Doc
Files
- LICENSE +27/−0
- Text/PrettyPrint/Mainland.hs +1/−2
- mainland-pretty.cabal +6/−5
LICENSE view
@@ -47,3 +47,30 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.++Copyright (c) 2015+ Drexel University.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions+are met:+1. Redistributions of source code must retain the above copyright+ notice, this list of conditions and the following disclaimer.+2. Redistributions in binary form must reproduce the above copyright+ notice, this list of conditions and the following disclaimer in the+ documentation and/or other materials provided with the distribution.+3. Neither the name of the University nor the names of its contributors+ may be used to endorse or promote products derived from this software+ without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY AND CONTRIBUTORS ``AS IS'' AND+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE+ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF+SUCH DAMAGE.
Text/PrettyPrint/Mainland.hs view
@@ -22,7 +22,6 @@ {-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-}-{-# LANGUAGE OverlappingInstances #-} module Text.PrettyPrint.Mainland ( -- * The document type@@ -80,7 +79,7 @@ posFile, posLine) import qualified Data.Map as Map-import Data.Monoid+import Data.Monoid (Monoid(..), (<>)) import qualified Data.Set as Set import qualified Data.Text as T import qualified Data.Text.Lazy.IO as TIO
mainland-pretty.cabal view
@@ -1,14 +1,15 @@ name: mainland-pretty-version: 0.2.7.1+version: 0.2.7.2 cabal-version: >= 1.6 license: BSD3 license-file: LICENSE copyright: (c) 2006-2011 Harvard University (c) 2011-2012 Geoffrey Mainland-author: Geoffrey Mainland <mainland@eecs.harvard.edu>-maintainer: mainland@eecs.harvard.edu+ (c) 2015 Drexel University+author: Geoffrey Mainland <mainland@cs.drexel.edu>+maintainer: Geoffrey Mainland <mainland@cs.drexel.edu> stability: alpha-homepage: http://www.eecs.harvard.edu/~mainland/+homepage: http://www.cs.drexel.edu/~mainland/ category: Text synopsis: Pretty printing designed for printing source code. description: Pretty printing designed for printing source code based on@@ -27,7 +28,7 @@ build-depends: base >= 4 && < 5, containers >= 0.2 && < 0.6,- srcloc >= 0.2 && < 0.5,+ srcloc >= 0.2 && < 0.6, text > 0.11 && < 1.3 source-repository head