these-skinny 0.7.4 → 0.7.5
raw patch · 2 files changed
+47/−27 lines, 2 filesdep +bifunctorsdep +ghc-primdep +semigroupsdep ~basedep ~deepseqPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies added: bifunctors, ghc-prim, semigroups
Dependency ranges changed: base, deepseq
API changes (from Hackage documentation)
- Data.These: here :: (Applicative f) => (a -> f b) -> These a t -> f (These b t)
+ Data.These: here :: Applicative f => (a -> f b) -> These a t -> f (These b t)
- Data.These: there :: (Applicative f) => (a -> f b) -> These t a -> f (These t b)
+ Data.These: there :: Applicative f => (a -> f b) -> These t a -> f (These t b)
Files
- Data/These.hs +2/−2
- these-skinny.cabal +45/−25
Data/These.hs view
@@ -212,7 +212,7 @@ bitraverse f g (These x y) = These <$> f x <*> g y instance (Semigroup a) => Applicative (These a) where- pure = That + pure = That This a <*> _ = This a That _ <*> This b = This b That f <*> That x = That (f x)@@ -222,7 +222,7 @@ These a f <*> These b x = These (a <> b) (f x) instance (Semigroup a) => Monad (These a) where- return = pure + return = pure This a >>= _ = This a That x >>= k = k x These a x >>= k = case k x of
these-skinny.cabal view
@@ -1,20 +1,31 @@-Name: these-skinny-Version: 0.7.4-Synopsis: A fork of the 'these' package without the dependency bloat.-Homepage: https://github.com/chessai/these-skinny-License: BSD3-License-file: LICENSE-Author: C. McCann-Maintainer: chessai1996@gmail.com-Category: Data-Build-type: Simple-Extra-source-files: CHANGELOG.md-Cabal-version: >=1.10-Description:+cabal-version: 2.4+name:+ these-skinny+version:+ 0.7.5+synopsis:+ A fork of the 'these' package without the dependency bloat+description: This package provides a data type @These a b@ which can hold a value of either type or values of each type. This is usually thought of as an "inclusive or" type (contrasting @Either a b@ as "exclusive or") or as an "outer join" type (contrasting @(a, b)@ as "inner join").+homepage:+ https://github.com/chessai/these-skinny+license:+ BSD-3-Clause+license-file:+ LICENSE+author:+ C. McCann+maintainer:+ chessai <chessai1996@gmail.com>+category:+ Data+build-type:+ Simple+extra-source-files:+ CHANGELOG.md tested-with: GHC==7.4.2, GHC==7.6.3,@@ -22,20 +33,29 @@ GHC==7.10.3, GHC==8.0.2, GHC==8.2.2,- GHC==8.4.3+ GHC==8.4.4+ GHC==8.6.5,+ GHC==8.8.4,+ GHC==8.10.7,+ GHC==9.0.2,+ GHC==9.2.1 source-repository head type: git location: https://github.com/chessai/these-skinny.git -Library- Exposed-modules: Data.These-- Build-depends:- base >= 4.8 && < 4.12- , deepseq >= 1.3.0.0 && < 1.5- - Default-Language: Haskell2010- - ghc-options: -Wall- +library+ exposed-modules:+ Data.These+ build-depends:+ , base >= 4.4 && < 4.17+ , deepseq+ , ghc-prim+ if impl(ghc < 8.2)+ build-depends: bifunctors+ if impl(ghc < 8.0)+ build-depends: semigroups+ default-language:+ Haskell2010+ ghc-options:+ -Wall