packages feed

both 0.1.1.0 → 0.1.1.1

raw patch · 3 files changed

+17/−17 lines, 3 filessetup-changedPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Data.Both: instance (GHC.Base.Monoid a, Data.Semigroup.Semigroup a) => GHC.Base.Monoid (Data.Both.Both a)
- Data.Both: instance Data.Semigroup.Semigroup a => Data.Semigroup.Semigroup (Data.Both.Both a)
- Data.Both: instance Data.Semigroup.Semigroup a => Data.Zero.Zero (Data.Both.Both a)
- Data.Both: instance GHC.Generics.Constructor Data.Both.C1_0Both
- Data.Both: instance GHC.Generics.Datatype Data.Both.D1Both
- Data.Both: instance GHC.Generics.Selector Data.Both.S1_0_0Both
+ Data.Both: instance (GHC.Base.Monoid a, GHC.Base.Semigroup a) => GHC.Base.Monoid (Data.Both.Both a)
+ Data.Both: instance GHC.Base.Semigroup a => Data.Zero.Zero (Data.Both.Both a)
+ Data.Both: instance GHC.Base.Semigroup a => GHC.Base.Semigroup (Data.Both.Both a)

Files

Data/Both.hs view
@@ -1,21 +1,21 @@-{-# LANGUAGE DeriveDataTypeable         #-}-{-# LANGUAGE DeriveGeneric              #-}-{-# LANGUAGE DeriveTraversable          #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-}  -- | The 'Both' type and operations. Like 'Maybe', but not. module Data.Both where -import Control.Applicative-import Control.Monad-import Data.Data-import Data.Foldable-import Data.Maybe-import Data.Monoid hiding ((<>))-import Data.Semigroup-import Data.Traversable-import Data.Zero-import GHC.Generics+import           Control.Applicative+import           Control.Monad+import           Data.Data+import           Data.Foldable+import           Data.Maybe+import           Data.Monoid         hiding ((<>))+import           Data.Semigroup+import           Data.Traversable+import           Data.Zero+import           GHC.Generics  newtype Both a = Both { getBoth :: Maybe a }   deriving (Eq, Ord, Read, Show, Data, Typeable, Generic, Generic1, Functor, Applicative, Alternative, Monad, MonadPlus, Foldable, Traversable)
Setup.hs view
@@ -1,2 +1,2 @@-import Distribution.Simple+import           Distribution.Simple main = defaultMain
both.cabal view
@@ -2,7 +2,7 @@ -- see http://haskell.org/cabal/users-guide/  name:                both-version:             0.1.1.0+version:             0.1.1.1 synopsis:            Like Maybe, but with a different Monoid instance. description:   The Monoid instance for Maybe behaves like so:@@ -42,14 +42,14 @@ source-repository this   type:     git   location: https://github.com/barrucadu/both.git-  tag:      0.1.1.0+  tag:      0.1.1.1  library   exposed-modules:     Data.Both   -- other-modules:          -- other-extensions:       build-depends:       base >=4.7 && <5.0-                     , semigroups >=0.16 && <0.19+                     , semigroups >=0.16                      , zero >=0.1 && <0.2   -- hs-source-dirs:         default-language:    Haskell2010