packages feed

newtype-generics 0.6 → 0.6.1

raw patch · 3 files changed

+16/−5 lines, 3 filesdep ~base

Dependency ranges changed: base

Files

CHANGELOG.md view
@@ -1,5 +1,8 @@ # Changelog for `newtype-generics` +## [0.6.1] – 2021-11-02+- Support GHC-9.2+ ## [0.6] – 2021-02-04 - Remove the deprecated `Control.Newtype` module. - Support GHC-9.0@@ -41,6 +44,7 @@   [Unreleased]: https://github.com/sjakobi/newtype-generics/compare/v0.6...HEAD+[0.6.1]: https://github.com/sjakobi/newtype-generics/compare/v0.6...v0.6.1 [0.6]: https://github.com/sjakobi/newtype-generics/compare/v0.5.4...v0.6 [0.5.4]: https://github.com/sjakobi/newtype-generics/compare/v0.5.3...v0.5.4 [0.5.3]: https://github.com/sjakobi/newtype-generics/compare/v0.5.2.2...v0.5.3
Control/Newtype/Generics.hs view
@@ -65,7 +65,11 @@ import Data.Monoid import Data.Ord import qualified Data.Semigroup-import Data.Semigroup (Min(..), Max(..), WrappedMonoid(..), Option(..))+#if MIN_VERSION_base(4,16,0)+import Data.Semigroup (Min(..), Max(..), WrappedMonoid(..))+#else+import Data.Semigroup (Min(..), Max(..), WrappedMonoid(..),Option(..))+#endif import GHC.Generics {-import Generics.Deriving-} @@ -366,8 +370,10 @@   pack = WrapMonoid   unpack (WrapMonoid m) = m +#if !MIN_VERSION_base(4,16,0) -- | @since 0.5.1 instance Newtype (Option a) where   type O (Option a) = Maybe a   pack = Option   unpack (Option x) = x+#endif
newtype-generics.cabal view
@@ -1,5 +1,5 @@ Name:                newtype-generics-Version:             0.6+Version:             0.6.1 Synopsis:            A typeclass and set of functions for working with newtypes Description:         Per Conor McBride, the Newtype typeclass represents the packing and unpacking of a newtype,                      and allows you to operate under that newtype with functions such as ala.@@ -15,8 +15,9 @@ Extra-source-files:  CHANGELOG.md Cabal-version:       >=1.10 Tested-with:-  -- GHC==9.0.1,-  GHC==8.10.3,+  GHC==9.2.1,+  GHC==9.0.1,+  GHC==8.10.4,   GHC==8.8.4,   GHC==8.6.5,   GHC==8.4.4,@@ -25,7 +26,7 @@  Library   Exposed-modules:     Control.Newtype.Generics-  Build-depends:       base >= 4.9 && < 4.16+  Build-depends:       base >= 4.9 && < 4.17                      , transformers < 0.6   Ghc-options: -Wall   default-language:   Haskell2010