packages feed

prelude-extras 0.1.0.2 → 0.1.0.3

raw patch · 2 files changed

+10/−7 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Prelude.Extras: (<##) :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> Bool
- Prelude.Extras: (<#) :: (Ord1 f, Ord a) => f a -> f a -> Bool
- Prelude.Extras: (<=##) :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> Bool
- Prelude.Extras: (<=#) :: (Ord1 f, Ord a) => f a -> f a -> Bool
- Prelude.Extras: (>##) :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> Bool
- Prelude.Extras: (>#) :: (Ord1 f, Ord a) => f a -> f a -> Bool
- Prelude.Extras: (>=##) :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> Bool
- Prelude.Extras: (>=#) :: (Ord1 f, Ord a) => f a -> f a -> Bool
- Prelude.Extras: max1 :: (Ord1 f, Ord a) => f a -> f a -> f a
- Prelude.Extras: max2 :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> f a b
- Prelude.Extras: min1 :: (Ord1 f, Ord a) => f a -> f a -> f a
- Prelude.Extras: min2 :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> f a b
+ Prelude.Extras: (<##, >##, >=##, <=##) :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> Bool
+ Prelude.Extras: (<#, >#, >=#, <=#) :: (Ord1 f, Ord a) => f a -> f a -> Bool
+ Prelude.Extras: max1, min1 :: (Ord1 f, Ord a) => f a -> f a -> f a
+ Prelude.Extras: max2, min2 :: (Ord2 f, Ord a, Ord b) => f a b -> f a b -> f a b
- Prelude.Extras: class Eq1 f
+ Prelude.Extras: class Eq1 f where a /=# b = not (a ==# b)
- Prelude.Extras: class Eq2 f
+ Prelude.Extras: class Eq2 f where a /=## b = not (a ==## b)
- Prelude.Extras: class Eq1 f => Ord1 f
+ Prelude.Extras: class Eq1 f => Ord1 f where compare1 x y | x ==# y = EQ | x <=# y = LT | otherwise = GT x <=# y = compare1 x y /= GT x <# y = compare1 x y == LT x >=# y = compare1 x y /= LT x ># y = compare1 x y == GT max1 x y | x >=# y = x | otherwise = y min1 x y | x <# y = x | otherwise = y
- Prelude.Extras: class Eq2 f => Ord2 f
+ Prelude.Extras: class Eq2 f => Ord2 f where compare2 x y | x ==## y = EQ | x <=## y = LT | otherwise = GT x <=## y = compare2 x y /= GT x <## y = compare2 x y == LT x >=## y = compare2 x y /= LT x >## y = compare2 x y == GT max2 x y | x >=## y = x | otherwise = y min2 x y | x <## y = x | otherwise = y
- Text.Read.Extras: class Read1 f
+ Text.Read.Extras: class Read1 f where readsPrec1 = readPrec_to_S readPrec1 readList1 = readPrec_to_S (list readPrec1) 0 readPrec1 = readS_to_Prec readsPrec1 readListPrec1 = readS_to_Prec (\ _ -> readList1)
- Text.Read.Extras: class Read2 f
+ Text.Read.Extras: class Read2 f where readsPrec2 = readPrec_to_S readPrec2 readList2 = readPrec_to_S (list readPrec2) 0 readPrec2 = readS_to_Prec readsPrec2 readListPrec2 = readS_to_Prec (\ _ -> readList2)
- Text.Show.Extras: class Show1 f
+ Text.Show.Extras: class Show1 f where showsPrec1 _ x s = show1 x ++ s show1 x = shows1 x "" showList1 ls s = showList__ shows1 ls s
- Text.Show.Extras: class Show2 f
+ Text.Show.Extras: class Show2 f where showsPrec2 _ x s = show2 x ++ s show2 x = shows2 x "" showList2 ls s = showList__ shows2 ls s

Files

+ .travis.yml view
@@ -0,0 +1,1 @@+language: haskell
prelude-extras.cabal view
@@ -1,6 +1,6 @@ name:          prelude-extras category:      Polymorphism, Combinators-version:       0.1.0.2+version:       0.1.0.3 license:       BSD3 cabal-version: >= 1.2 license-file:  LICENSE@@ -8,24 +8,26 @@ maintainer:    Edward A. Kmett <ekmett@gmail.com> stability:     provisional homepage:      http://github.com/ekmett/prelude-extras+bug-reports:   http://github.com/ekmett/prelude-extras/issues copyright:     Copyright (C) 2011 Edward A. Kmett-synopsis:      Haskell 98 - higher order versions of Prelude classes -description:   +synopsis:      Haskell 98 - higher order versions of Prelude classes+description:   Haskell 98 - higher order versions of Prelude classes to ease programming with polymorphic recursion and reduce UndecidableInstances-  . +  .   See <http://flint.cs.yale.edu/trifonov/papers/sqcc.pdf> for further discussion of the approach taken here. build-type:    Simple+extra-source-files: .travis.yml  library-  build-depends: +  build-depends:     base >= 4 && < 5    extensions: CPP -  ghc-options: -Wall +  ghc-options: -Wall    exposed-modules:     Prelude.Extras,     Text.Show.Extras,     Text.Read.Extras-  +