Changelog for kind-rational-0.5.0
Version 0.5.0
-
COMPILER ASSISTED BREAKING CHANGE:
KindRational.Rationalis now is now only ever used as a kind. So, all term-level functions in theKindRationalconsume and producePrelude.Rationals. Term-level functions crash willerrorif they are suppliedRationals that are notReducedas input. -
COMPILER ASSISTED BREAKING CHANGE: Removed
Eq,Ord,ShowandReadinstances forKindRational.Rational. -
COMPILER ASSISTED BREAKING CHANGE: Removed
withTerminatingin favor oftermination. -
COMPILER ASSISTED BREAKING CHANGE:
Rationals that are notReducedare notKnownRationals anymore. -
COMPILER ASSISTED BREAKING CHANGE:
KnownRationalis now a type-synonym that impliesNormalize r ~ r,KnownInteger (Num r)andKnownNat (Den r)as well. -
Added
singletons-basesupport forRational, includingPNum,SNum,PEq,SEq,POrd,SOrd,PShowandSShow. Most arithmetic functions are now exported throughPNumandSNum, rather than standalone. -
Added
readPrecTypeLit,SRationalTerminates,SRationalTerminatesNot,normalize,rationalLit,NonTerminating,%,%%,ToRational,mkRational,sMkRational,sRecip'. -
Added
ShowLit,ShowsLit,ShowsPrecLitand its singletons and promoted versions. -
Added defunctionalization symbols.
Version 0.4
-
COMPILER ASSISTED BREAKING CHANGE:
rationalVal,someRationalVal,fromSRational,terminates,divRem,divandremnow deal withKindRational'sRationals, rather thanPrelude'sRationals. -
COMPILER ASSISTED BREAKING CHANGE: Removed
fromSRational'. -
Added
SingIandSingKindinstances.
Version 0.3
-
COMPILER ASSISTED BREAKING CHANGE:
TestEqualityandTestCoerciondon'tNormalizeinputs before making a decision anymore. -
BREAKING CHANGE: The
RationalinsideSRationalis not automatically normalized anymore. This is so thatSDecide,TestEqualityandTestCoercionbehave as expected, treating1/2differently than2/4, for example. This is mostly an internal change, but it can be observed in theShowinstance forSRational, for example. -
Added role annotations to
SRational. -
Add dependency on
singletonsso that we can give aSingandSDecideinstances for type-levelRationals. -
Export
fromSRational'.
Version 0.2
-
COMPILER ASSISTED BREAKING CHANGE: Removed
Mod,DivMod,mod,divMod. -
COMPILER ASSISTED BREAKING CHANGE: Renamed
DiftoRem,DivDiftoDivRem,modtorem,divDiftodivRem.
Version 0.1
- Initial version.