packages feed

variadic-function 0.1.0.1 → 0.1.0.2

raw patch · 3 files changed

+16/−4 lines, 3 files

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ # Changelog for variadic-function +## Changes in 0.1.0.2++- Improve test coverage+ ## Changes in 0.1.0.1  - Fix markup in README
test/Spec.hs view
@@ -6,11 +6,19 @@  main :: IO () main = hspec $ do-  describe "Variadic function" $ do-    it "transforms function" $ do+  describe "createFunction" $ do+    it "constN " $ do+      constN "one" () () `shouldBe` "one"++    it "mappendN" $ do+      mappendN [1] [2, 3] `shouldBe` [1, 2, 3]++  describe "transformFunction" $ do+    it "composeN" $ do       let f :: Int -> Int -> Int -> String           f = show `composeN` \a b c -> a + b + c       f 1 2 3 `shouldBe` "6"-    it "transforms function with inferred type" $ do++    it "composeN with inferred type" $ do       let f = show `composeN` \a b c -> (a + b + c :: Int)       f 1 2 3 `shouldBe` "6"
variadic-function.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           variadic-function-version:        0.1.0.1+version:        0.1.0.2 synopsis:       Create and transform functions with variable arity. description:    Please see the README on GitHub at <https://github.com/lykahb/variadic-function#readme> category:       Data, Functions