Changelog for kind-integer-0.6.0
Version 0.6.0
-
COMPILER ASSISTED BREAKING CHANGE:
KindInteger.Integer
is now is now only ever used as a kind. So, all term-level functions in theKindInteger
consume and producePrelude.Integer
s. -
COMPILER ASSISTED BREAKING CHANGE: Removed
Eq
,Ord
,Show
andRead
instances forKindInteger.Integer
. -
COMPILER ASSISTED BREAKING CHANGE:
Z
is now used to represent zero, instead of the previousP 0
. -
COMPILER ASSISTED BREAKING CHANGE:
P 0
andN 0
are notKnownInteger
s anymore. -
COMPILER ASSISTED BREAKING CHANGE:
KnownInteger
is now a type-synonym that impliesNormalized i ~ i
andKnownNat (Abs i)
as well. -
Added
readPrecTypeLit
. -
Added
Normalized
. -
Added
singletons-base
support forInteger
, includingPNum
,SNum
,PEq
,SEq
,POrd
,SOrd
,PShow
andSShow
. Most arithmetic functions are now exported throughPNum
andSNum
, rather than standalone. -
Added
ShowLit
,ShowsLit
,ShowsPrecLit
and its singletons and promoted versions. -
Added
Fold
andsFold
. -
Added defunctionalization symbols.
-
Added ZigZag encoding and decoding tools.
Version 0.5
-
COMPILER ASSISTED BREAKING CHANGE:
integerVal
,someIntegerVal
,fromSInteger
andwithSomeSInteger
now deal withKindInteger
'sInteger
s, rather thanPrelude
'sInteger
s. -
COMPILER ASSISTED BREAKING CHANGE: Removed
fromSInteger'
. -
Added
SingI
andSingKind
instances.
Version 0.4
-
COMPILER ASSISTED BREAKING CHANGE:
TestEquality
andTestCoercion
considerN 0
andP 0
to be different. -
BREAKING CHANGE: The
Integer
insideSInteger
s is not automatically normalized anymore. This is so thatSDecide
,TestEquality
andTestCoercion
behave as expected, treatingN 0
andP 0
differently. This is mostly an internal change, but it can be observed in theShow
instance forSInteger
, for example. -
Added role annotations to
SInteger
. -
Add dependency on
singletons
so that we can give aSing
andSDecide
instances for type-levelInteger
s. -
Export
fromSInteger'
,eqIntegerRep
.
Version 0.3
- COMPILER ASSISTED BREAKING CHANGE: Renamed
Mod
toRem
,DivMod
toDivRem
,mod
torem
,divMod
todivRem
.
Version 0.2
-
COMPILER ASSISTED BREAKING CHANGE: Removed
Div
,Mod
,Quote
andRem
in favour of more polymorphicDiv
,Mod
. -
COMPILER ASSISTED BREAKING CHANGE: Removed
integerVal'
. Nothing wrong with it, just redundant. -
Export
Sign
,Abs
,GCD
,LCM
,Odd
,Even
,toPrelude
,fromPrelude
,showsPrecTypeLit
,div
,mod
,divMod
,DivMod
. -
Add
Eq
,Ord
,Show
,Read
instances forInteger
. -
Minor cabal and documentation improvements.
Version 0.1
- Initial version.