packages feed

s-cargot-letbind 0.2.3.0 → 0.2.4.0

raw patch · 3 files changed

+35/−23 lines, 3 filesdep ~s-cargotdep ~textPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: s-cargot, text

API changes (from Hackage documentation)

- Data.SCargot.LetBind: Guide :: (Int -> Int) -> Int -> Bool -> (SExpr a -> Int -> Int) -> (IsString str) => str -> a -> (IsString str, Monoid str) => str -> SExpr a -> a -> (IsString str) => a -> Maybe str -> DiscoveryGuide a str
+ Data.SCargot.LetBind: Guide :: (Int -> Int) -> Int -> Bool -> (SExpr a -> Int -> Int) -> (IsString str => str -> a) -> ((IsString str, Monoid str) => str -> SExpr a -> a) -> (IsString str => a -> Maybe str) -> DiscoveryGuide a str
- Data.SCargot.LetBind: [extractStr] :: DiscoveryGuide a str -> (IsString str) => a -> Maybe str
+ Data.SCargot.LetBind: [extractStr] :: DiscoveryGuide a str -> IsString str => a -> Maybe str
- Data.SCargot.LetBind: [letMaker] :: DiscoveryGuide a str -> (IsString str) => str -> a
+ Data.SCargot.LetBind: [letMaker] :: DiscoveryGuide a str -> IsString str => str -> a

Files

ChangeLog.md view
@@ -1,14 +1,20 @@ # Revision history for s-cargot-letbind +## 0.2.4.0  -- 2023-04-03++  * Remove upper bound on text (builtin to GHC)+  * Update for new s-cargot version with S-expression pretty printing whitespace+    and indentation fixes.+ ## 0.2.3.0  -- 2018-06-12 -	* Relax upper bound to allow build with GHC 8.4+  * Relax upper bound to allow build with GHC 8.4 -	* Haddock documentation fix for special characters.+  * Haddock documentation fix for special characters.  ## 0.2.2.0  -- 2018-03-02 -	* Updated to use s-cargot release 0.1.4.0.+  * Updated to use s-cargot release 0.1.4.0.  	More performance fixes in s-cargot for `basicPrint`, and using 	`unconstrainedPrint` without a width specification (because a@@ -16,13 +22,13 @@  ## 0.2.1.0  -- 2018-03-02 -	* Updated to use s-cargot release 0.1.3.0 and the+  * Updated to use s-cargot release 0.1.3.0 and the 	`unconstrainedPrint` added in that version for increased 	performance.  ## 0.2.0.0  -- 2018-02-16 -	* Added verification ability to ensure let-bind variables are+  * Added verification ability to ensure let-bind variables are 	always unique with respect to each-other and with respect to all 	generated symbol strings within the s-expression.  This is 	performed internally within the 'discoverLetBindings' function,@@ -31,10 +37,9 @@ 	'DiscoveryGuide' to support this.  If not provided, or if the 	provided form returns Nothing, no validation will be performed. -	* Suppress generation of let-binding phrase if there are no+    * Suppress generation of let-binding phrase if there are no 	  discovered bindings to apply.  ## 0.1.0.0  -- 2018-02-14 -	* Initial version.-+  * Initial version.
s-cargot-letbind.cabal view
@@ -1,5 +1,5 @@ name:                s-cargot-letbind-version:             0.2.3.0+version:             0.2.4.0 synopsis:            Enables let-binding and let-expansion for s-cargot defined S-expressions. description: @@ -33,12 +33,19 @@ copyright:           2018 Kevin Quick category:            Data build-type:          Simple+cabal-version:       >=1.10++tested-with: GHC == 8.8.4+             GHC == 8.10.7+             GHC == 9.2.7+             GHC == 9.4.4+             GHC == 9.6.1+ extra-source-files:  ChangeLog.md                      test/big-sample.sexp                      test/small-sample.sexp                      test/med-sample.sexp                      test/med2-sample.sexp-cabal-version:       >=1.10  source-repository head   type: git@@ -47,8 +54,8 @@ library   exposed-modules:     Data.SCargot.LetBind   build-depends:       base      >=4.9 && <5-                     , s-cargot  >= 0.1.4.0 && <0.2-                     , text      >=1.2 && <2+                     , s-cargot  >= 0.1.6.0 && <0.2+                     , text      >=1.2 && <2.1   hs-source-dirs:      src   default-language:    Haskell2010   ghc-options:         -Wall@@ -61,6 +68,6 @@   build-depends:    base      >=4.9 && <5                   , parsec    >=3.1 && <4                   , HUnit     >=1.6 && <1.7-                  , s-cargot  >= 0.1.4.0 && <0.2+                  , s-cargot  >= 0.1.6.0 && <0.2                   , s-cargot-letbind-                  , text      >=1.2 && <2+                  , text      >=1.2 && <2.1
test/SCargotPrintParseLet.hs view
@@ -139,10 +139,10 @@                   normalf = (SAtom (AIdent "people"))               in TestList               [ TestLabel "trivial let binding" $-                "((hi world and\npeople) hallo welt\nund\nleute)" ~=?+                "((hi world and people)\n  hallo\n  welt\n  und\n  leute)" ~=?                 (pprintIt $ discoverLetBindings nobindGuide $ sexpr normalf)               , TestLabel "trivial let binding (wide)" $-                "((hi world and people)\n hallo\n welt\n und\n leute)" ~=?+                "((hi world and people)\n  hallo\n  welt\n  und\n  leute)" ~=?                 (widePrintIt $ discoverLetBindings nobindGuide $ sexpr normalf)                , TestLabel "duplicate names" $@@ -154,17 +154,17 @@                          ])                , TestLabel "expected bindings for these tests" $-                              "(let \n\-                              \ ((people (welt und leute)) \n\-                              \  (var1 (world and last)))\n\-                              \ ((hi var1) hallo people))" ~=?+                              "(let\n\+                              \  ((people (welt und leute))\n\+                              \    (var1 (world and last)))\n\+                              \  ((hi var1) hallo people))" ~=?                               (pprintIt $ discoverLetBindings peoplenames                                             $ sexpr (SAtom (AIdent "last")))               , TestLabel "expected bindings for these tests" $                               "(let\n\-                              \ ((people\n  (welt und leute))\n\-                              \  (var1\n   (world and last)))\n\-                              \ ((hi var1)\n  hallo\n  people))" ~=?+                              \  ((people\n    (welt und leute))\n\+                              \    (var1\n      (world and last)))\n\+                              \  ((hi var1)\n    hallo\n    people))" ~=?                               (widePrintIt $ discoverLetBindings peoplenames                                             $ sexpr (SAtom (AIdent "last")))