packages feed

grab-form 0.0.0.1 → 0.0.0.2

raw patch · 4 files changed

+39/−2 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

+ changelog.md view
@@ -0,0 +1,13 @@+# Changelog++## 0.0.0.1 - 2019 June 13++Initial release++## 0.0.0.2 - 2019 June 17++Bug fixes:++  - An error in the `showName` function resulted in too many `.` characters in+    the output. This also affected the way parameter names were displayed in+    the output of the `englishSentenceLogText` function.
grab-form.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.4  name: grab-form-version: 0.0.0.1+version: 0.0.0.2  synopsis: Applicative parsers for form parameter lists category: Text@@ -68,6 +68,9 @@ license-file: license.txt  tested-with: GHC==8.6.5++extra-source-files:+    changelog.md  library   hs-source-dirs: src
src/Data/GrabForm.hs view
@@ -112,7 +112,7 @@ showName (Name (x : xs)) = showNamePart x <> showNameRemainder xs   where     showNameRemainder [] = ""-    showNameRemainder (y : ys) = "." <> showNamePart' y <> showNameRemainder ys+    showNameRemainder (y : ys) = showNamePart' y <> showNameRemainder ys      showNamePart (NameStr s) = s     showNamePart (NameNat n) = showNat n
test/Test/OrgRoster/Tests.hs view
@@ -184,6 +184,27 @@         []     } +prop_14 :: Property+prop_14 = example+  Example+    { ex_dump = only roster+    , ex_params =+        [ ("members[1].name", "Broccoli Rob")+        , ("members[1].isManager", "yes")+        , ("org", "13f499c3")+        ]+    , ex_log =+        [ "members[1].isManager: Unexpected parameter."+        , "members[1].name: Unexpected parameter."+        ]+    , ex_value =+        Just+          Roster+            { roster_org = OrgId "13f499c3"+            , roster_members = MemberList mempty mempty+            }+    }+ data Example a =   Example     { ex_dump :: Dump a