packages feed

numeric-prelude 0.4.3.3 → 0.4.4

raw patch · 5 files changed

+9/−9 lines, 5 filesdep ~containersdep ~deepseqdep ~doctest-lib

Dependency ranges changed: containers, deepseq, doctest-lib, random

Files

numeric-prelude.cabal view
@@ -1,6 +1,6 @@ Cabal-Version:  2.2 Name:           numeric-prelude-Version:        0.4.3.3+Version:        0.4.4 License:        BSD-3-Clause License-File:   LICENSE Author:         Dylan Thurston <dpt@math.harvard.edu>, Henning Thielemann <numericprelude@henning-thielemann.de>, Mikael Johansson@@ -30,7 +30,7 @@   default:     False  Source-Repository this-  Tag:         0.4.3.3+  Tag:         0.4.4   Type:        darcs   Location:    https://hub.darcs.net/thielema/numeric-prelude/ 
src/Number/NonNegativeChunky.hs view
@@ -330,7 +330,7 @@  instance (NonNeg.C a) => Mn98.Monoid (T a) where    mempty  = Monoid.idt-   mappend = (Monoid.<*>)+   mappend = (Sg98.<>)  instance (NonNeg.C a) => Monoid.C (T a) where    idt   = Cons []
src/Number/Physical.hs view
@@ -222,11 +222,11 @@  instance Applicative (T a) where    (<*>) = ap-   pure = return+   pure = fromScalarSingle  instance Monad (T i) where-  (>>=) (Cons xu x) f =+   (>>=) (Cons xu x) f =     if Unit.isScalar xu     then f x     else error "Physics.Quantity.Value.(>>=): function for scalars, only"-  return = fromScalarSingle+   return = pure
src/Number/ResidueClass/Reader.hs view
@@ -45,11 +45,11 @@  instance Applicative (T a) where    (<*>) = ap-   pure = return+   pure = Cons . const  instance Monad (T a) where    (Cons x) >>= y  =  Cons (\r -> toFunc (y (x r)) r)-   return = Cons . const+   return = pure   
src/NumericPrelude/Base.hs view
@@ -22,7 +22,7 @@    P.IO,    P.IOError,    P.Maybe(..),-   P.Monad(..),+   P.Monad(..), P.fail,    P.Ord(..),    P.Ordering(..),    P.Read(..),