packages feed

portray 0.1.0.0 → 0.1.1

raw patch · 3 files changed

+22/−3 lines, 3 files

Files

CHANGELOG.md view
@@ -1,3 +1,9 @@ # 0.1.0.0  Initial version.++# 0.1.1++Transitional version towards 0.2.0.++* Add `Name` and `Opaque` pattern synonyms.
portray.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: fc9de5409cf7f63616fc77f69818b1d0770bb638a1137937c066fb8b5edbaf30+-- hash: 109ae2214b5ae5900ac117adf167e79fe09d0d97374f1a340a4bb042182e40fd  name:           portray-version:        0.1.0.0+version:        0.1.1 synopsis:       A pseudo-Haskell syntax type and typeclass producing it. description:    This provides a single place to describe how a type should be formatted as                 pseudo-Haskell syntax, independently of the actual pretty-printing library
src/Data/Portray.hs view
@@ -40,7 +40,7 @@ module Data.Portray          ( -- * Syntax Tree            Portrayal-             ( Atom, Apply, Binop, Tuple, List+             ( Atom, Name, Opaque, Apply, Binop, Tuple, List              , LambdaCase, Record, TyApp, TySig              , Quot, Unlines, Nest              , ..@@ -217,6 +217,19 @@ -- This is used for things like literals and constructor names. pattern Atom :: Text -> Portrayal pattern Atom txt = Portrayal (Fix (AtomF txt))++-- | Compatibility aid for portray-0.2.+--+-- Use this as @Name "a_string_literal"@ or @Name (fromString s)@ to support+-- both 0.1 and 0.2.+pattern Name :: Text -> Portrayal+pattern Name txt = Atom txt++-- | Compatibility aid for portray-0.2.+--+-- Use this with any Text argument to support both 0.1 and 0.2.+pattern Opaque :: Text -> Portrayal+pattern Opaque txt = Atom txt  -- | A function or constructor application of arbitrary arity. --