Changelog for kind-rational-0.5.0
Version 0.5.0
-
COMPILER ASSISTED BREAKING CHANGE:
KindRational.Rational
is now is now only ever used as a kind. So, all term-level functions in theKindRational
consume and producePrelude.Rational
s. Term-level functions crash willerror
if they are suppliedRational
s that are notReduced
as input. -
COMPILER ASSISTED BREAKING CHANGE: Removed
Eq
,Ord
,Show
andRead
instances forKindRational.Rational
. -
COMPILER ASSISTED BREAKING CHANGE: Removed
withTerminating
in favor oftermination
. -
COMPILER ASSISTED BREAKING CHANGE:
Rational
s that are notReduced
are notKnownRational
s anymore. -
COMPILER ASSISTED BREAKING CHANGE:
KnownRational
is now a type-synonym that impliesNormalize r ~ r
,KnownInteger (Num r)
andKnownNat (Den r)
as well. -
Added
singletons-base
support forRational
, includingPNum
,SNum
,PEq
,SEq
,POrd
,SOrd
,PShow
andSShow
. Most arithmetic functions are now exported throughPNum
andSNum
, rather than standalone. -
Added
readPrecTypeLit
,SRationalTerminates
,SRationalTerminatesNot
,normalize
,rationalLit
,NonTerminating
,%
,%%
,ToRational
,mkRational
,sMkRational
,sRecip'
. -
Added
ShowLit
,ShowsLit
,ShowsPrecLit
and its singletons and promoted versions. -
Added defunctionalization symbols.
Version 0.4
-
COMPILER ASSISTED BREAKING CHANGE:
rationalVal
,someRationalVal
,fromSRational
,terminates
,divRem
,div
andrem
now deal withKindRational
'sRational
s, rather thanPrelude
'sRational
s. -
COMPILER ASSISTED BREAKING CHANGE: Removed
fromSRational'
. -
Added
SingI
andSingKind
instances.
Version 0.3
-
COMPILER ASSISTED BREAKING CHANGE:
TestEquality
andTestCoercion
don'tNormalize
inputs before making a decision anymore. -
BREAKING CHANGE: The
Rational
insideSRational
is not automatically normalized anymore. This is so thatSDecide
,TestEquality
andTestCoercion
behave as expected, treating1/2
differently than2/4
, for example. This is mostly an internal change, but it can be observed in theShow
instance forSRational
, for example. -
Added role annotations to
SRational
. -
Add dependency on
singletons
so that we can give aSing
andSDecide
instances for type-levelRational
s. -
Export
fromSRational'
.
Version 0.2
-
COMPILER ASSISTED BREAKING CHANGE: Removed
Mod
,DivMod
,mod
,divMod
. -
COMPILER ASSISTED BREAKING CHANGE: Renamed
Dif
toRem
,DivDif
toDivRem
,mod
torem
,divDif
todivRem
.
Version 0.1
- Initial version.