Changelog for some-1.0.6
1.0.6
- Add instances for
SSymbol,SNatandSCharfrom `base >=4.18.0.0'
1.0.5
-
Add EqP and OrdP classes. These are strong versions of Eq1 and Ord1, and on the other hand weaker versions of
GEqandGCompare. They are exactly what's needed forEqandOrdinstances ofSome.The naming is unfortunate:
GShowwould be better namedShowP, as it's similar version ofShow1.Note: we could add
ReadPwithreadsPrecP :: Int -> ReadS (t a)method, but it will barely have any instances.GReadis different, as it can reify the type index for many types, e.g. for the singletons.In some future there will be major version of
somewith following breaking changes:EqPandOrdPwill become superclasses ofGEqandGCompareEq (Some t)will requireEqP t, similarly forOrdandOrdP.GShowwill getforall a. Show (f a)superclass. (This will cause removal ofProductandSuminstances forbase <4.18).
To ease future transition you may
- Define
EqPandOrdPinstances for your types. ThedefaultEqanddefaultComparemethods can be used to defineeqpandcomparepfromGEqandGCompareinstances respectively. - Move to use
GHC.Generics.:*:and:+:instead ofData.Functor.ProductandSum, as these have betterEqandOrdinstances.
1.0.4.1
- Drop support for GHC before 8.6
1.0.4
- Add instances for
(:~~:) - Add instances for
:+:and:*: - Add
defaultGeq :: GCompare f => f a -> f b -> Maybe (a :~: b) - Add
defaultGshowsPrec :: Show (t a) => Int -> t a -> ShowS
1.0.3
- Make
GNFDataPolyKinded. - Add
GNFData ((:~:) a)andGNFData TypeRepinstances
1.0.2
- Explicitly mark
Data.SomeasSafe. It was previously inferred, yet it was Safe too, as it only re-exports other explicitly marked modules. - Allow
base-4.15, GHC-9.0 compatibility
1.0.1
- Add 'withSomeM' combinator. Allows to workaround: https://gitlab.haskell.org/ghc/ghc/issues/15681
1.0.0.3
- One less
unsafeCoerce(thanks to David Feuer)
1.0.0.2
- Broken release
1.0.0.1
- Fix issue with GHC#9585 https://gitlab.haskell.org/ghc/ghc/issues/9584
1
- Split out of
dependent-sum - Have
GADT,Newtype,Churchvariants - Add
NFDatainstance