prednote 0.24.0.0 → 0.24.2.0
raw patch · 6 files changed
+43/−10 lines, 6 filesdep ~rainbowPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: rainbow
API changes (from Hackage documentation)
+ Prednote: wrap :: Text -> (a -> Text) -> (a -> b) -> Pred b -> Pred a
+ Prednote.Prebuilt: wrap :: Text -> (a -> Text) -> (a -> b) -> Pred b -> Pred a
Files
- changelog +4/−0
- current-versions.txt +3/−3
- lib/Prednote.hs +1/−0
- lib/Prednote/Prebuilt.hs +28/−0
- minimum-versions.txt +4/−4
- prednote.cabal +3/−3
changelog view
@@ -1,3 +1,7 @@+0.24.0.2++ * added wrap function.+ 0.24.0.0 * complete change in API and internals.
current-versions.txt view
@@ -1,7 +1,7 @@ This package was tested to work with these dependency versions and compiler version. These are the default versions fetched by cabal install.-Tested as of: 2014-07-13 14:54:13.902743 UTC+Tested as of: 2014-07-17 15:13:52.820082 UTC Path to compiler: ghc-7.8.2 Compiler description: 7.8.2 @@ -33,9 +33,9 @@ transformers-0.3.0.0 unix-2.7.0.1 -/home/massysett/prednote/library/sunlight-25515/db:+/home/massysett/prednote/library/sunlight-10118/db: contravariant-0.6- prednote-0.24.0.0+ prednote-0.24.2.0 rainbow-0.14.0.2 split-0.2.2 terminfo-0.4.0.0
lib/Prednote.hs view
@@ -66,6 +66,7 @@ , P.any , (|||) , P.not+ , P.wrap -- ** Fanout
lib/Prednote/Prebuilt.hs view
@@ -57,6 +57,34 @@ where l = "same as subject" +-- # Wrap++-- | Makes an existing 'C.Pred' the child of a new 'C.Pred'. The new+-- 'Pred' has the same 'C.result' as the child 'C.Pred'. The new+-- 'C.Pred' is always visible and never short circuits.++wrap+ :: Text+ -- ^ Static label++ -> (a -> Text)+ -- ^ Computes the dynamic label. Do not indicate whether the result+ -- is 'True' or 'False'; this is automatically done for you.++ -> (a -> b)+ -> C.Pred b+ -> C.Pred a+wrap st dyn wr p = C.Pred trC ev+ where+ trC = E.Node (indentTxt st) [C.static p]+ ev a = E.Node o [c]+ where+ c = C.evaluate p (wr a)+ r = C.result . E.rootLabel $ c+ o = C.Output r C.shown Nothing dy+ dy = indent $ lblLine r (dyn a)++ -- # Visibility -- | Creates a 'C.Pred' with its visibility modified.
minimum-versions.txt view
@@ -1,7 +1,7 @@ This package was tested to work with these dependency versions and compiler version. These are the minimum versions given in the .cabal file.-Tested as of: 2014-07-13 14:54:13.902743 UTC+Tested as of: 2014-07-17 15:13:52.820082 UTC Path to compiler: ghc-7.4.1 Compiler description: 7.4.1 @@ -33,10 +33,10 @@ time-1.4 unix-2.5.1.0 -/home/massysett/prednote/library/sunlight-25515/db:+/home/massysett/prednote/library/sunlight-10118/db: contravariant-0.2.0.1- prednote-0.24.0.0- rainbow-0.14.0.0+ prednote-0.24.2.0+ rainbow-0.14.0.2 split-0.2.2 terminfo-0.4.0.0 text-0.11.2.0
prednote.cabal view
@@ -3,10 +3,10 @@ -- http://www.github.com/massysett/cartel -- -- Script name used to generate: genCabal.hs--- Generated on: 2014-07-13 10:54:10.054497 EDT+-- Generated on: 2014-07-17 11:13:23.064263 EDT -- Cartel library version: 0.10.0.2 name: prednote-version: 0.24.0.0+version: 0.24.2.0 cabal-version: >= 1.14 build-type: Simple license: BSD3@@ -55,7 +55,7 @@ build-depends: base ((> 4.5.0.0 || == 4.5.0.0) && < 5) , contravariant ((> 0.2.0.1 || == 0.2.0.1) && < 0.7)- , rainbow ((> 0.14.0.0 || == 0.14.0.0) && < 0.15)+ , rainbow ((> 0.14.0.2 || == 0.14.0.2) && < 0.15) , split ((> 0.2.2 || == 0.2.2) && < 0.3) , text ((> 0.11.2.0 || == 0.11.2.0) && < 1.2) , containers ((> 0.4.2.1 || == 0.4.2.1) && < 0.6)