parameterized-utils v2.0 Release Notes
Release Date: 2019-04-10 // about 5 years ago-
- Drop support for GHC versions prior to GHC 8.2
- Various Haddock and module updates.
- Data.Parameterized.Classes
- Added function:
ordFCompose
- Added
OrdF
instance forCompose
- Added function:
- Data.Parameterized.ClassesC
- Marked as
Safe
haskell via pragma - Added
OrdC
instance forSome
- Marked as
- Data.Parameterized.Compose
- Update
testEqualityComposeBare
to be more kind-polymorphic. - Marked as
Safe
haskell via pragma
- Update
- Data.Parameterized.Context
- Added
diffIsAppend
function to extract the contextual difference between twoContext
s (as aDiff
) as anIsAppend
(new) data value if the left is a sub-context of the right.
- Added
- Data.Parameterized.NatRepr
- Change runtime representation from
Int
toNatural
- Add function
intValue
to recover anInt
from aNatRepr
. - Add constructor function
mkNatRepr
to construct aNatRepr
from aNatural
. - Removed awkward backdoor for directly creating
NatRepr
values; the single needed internal usage is now handled internally.
- Change runtime representation from
- Data.Parameterized.Peano
- Newly added module.
- Defines a type
Peano
andPeanoRepr
for representing a type-level natural at runtime. - The runtime representation of
PeanoRepr
isWord64
- Has both safe and unsafe implementations.
- Data.Parameterized.WithRepr
- Newly added module.
- This module declares a class
IsRepr
with a single methodwithRepr
that can be used to derive a 'KnownRepr' constraint from an explicit 'Repr' argument. Clients of this method need only create an empty instance. The default implementation suffices.