packages feed

chorale 0.1.0 → 0.1.1

raw patch · 3 files changed

+44/−5 lines, 3 filesdep +HUnitdep +QuickCheckdep +choraledep ~basedep ~containersdep ~safenew-uploaderPVP ok

version bump matches the API change (PVP)

Dependencies added: HUnit, QuickCheck, chorale, ieee754, test-framework, test-framework-hunit, test-framework-quickcheck2

Dependency ranges changed: base, containers, safe

API changes (from Hackage documentation)

+ Chorale.Common: infixr 8 .***
+ Chorale.Common: xnor :: Bool -> Bool -> Bool
+ Chorale.Common: xor :: Bool -> Bool -> Bool

Files

chorale.cabal view
@@ -1,5 +1,5 @@ name:           chorale-version:        0.1.0+version:        0.1.1 homepage:       https://github.com/mocnik-science/chorale bug-reports:    https://github.com/mocnik-science/chorale/issues synopsis:       A module containing basic functions that the prelude does not offer@@ -24,12 +24,29 @@ library   exposed-modules:     Chorale.Common-  hs-source-dirs:src/+  hs-source-dirs: src/   default-language: Haskell2010   ghc-options:     -Wall     -O2   build-depends:-    base >= 4.8 && < 5,-    containers >= 0.5.6,-    safe >= 0.3.8+    base >= 4.6 && < 5,+    containers >= 0.5,+    safe >= 0.3.4++test-suite test+  type: exitcode-stdio-1.0+  main-is: Test.hs+  hs-source-dirs: tests/+  default-language: Haskell2010+  build-depends:+    base >= 4.6 && < 5,+    chorale >= 0.1.1,+    containers >= 0.5,+    HUnit >= 1.2.5.2,+    ieee754 >= 0.7.3,+    QuickCheck >= 2.6,+    safe >= 0.3.4,+    test-framework >= 0.8.0.3,+    test-framework-hunit >= 0.3.0.1,+    test-framework-quickcheck2 >= 0.3.0.2
src/Chorale/Common.hs view
@@ -126,6 +126,9 @@     deleteAll,     deleteAlls,     cartesian,+    -- * Boolean Operations+    xor,+    xnor,     -- * Number Operations     average,     -- * String Operations@@ -639,6 +642,16 @@ -- | cartesian product cartesian :: [a] -> [b] -> [(a, b)] cartesian as bs = [(a, b) | a <- as, b <- bs]++-- --== BOOLEAN OPERATORS++-- | xor function+xor :: Bool -> Bool -> Bool+xor a = xnor (not a)++-- | xnor function+xnor :: Bool -> Bool -> Bool+xnor a b = (a && b) || (not a && not b)  -- --== NUMBER OPERATIONS 
+ tests/Test.hs view
@@ -0,0 +1,9 @@+import Chorale.Test.Common as ChoraleTestCommon++import Test.Framework++main :: IO ()+main = defaultMainWithArgs testsToRun ["--maximum-generated-tests=1000"]++testsToRun :: [Test]+testsToRun = ChoraleTestCommon.tests