MIT licensed by Tom Sydney Kerckhove
This version can be pinned in stack with:validity-0.12.0.1@sha256:4d6a182bec7e91265e47274f5db26f18b30743efa5e60031bb4786f4f690bc85,2534
Module documentation for 0.12.0.1
Used by 29 packages in
lts-19.6(full list with versions):
cursor,
cursor-fuzzy-time,
fuzzy-time,
genvalidity,
genvalidity-bytestring,
genvalidity-containers,
genvalidity-hspec,
genvalidity-hspec-hashable,
genvalidity-property,
genvalidity-scientific,
genvalidity-text,
genvalidity-unordered-containers,
genvalidity-uuid,
genvalidity-vector,
mergeless,
pretty-relative-time,
safe-coloured-text,
validity-bytestring,
validity-containers,
validity-path,
validity-persistent,
validity-primitive,
validity-scientific,
validity-text,
validity-time,
validity-unordered-containers,
validity-uuid,
validity-vector,
yamlparse-applicative For more info, see the readme.
Note: There are companion instance packages for this library:
Changelog
[0.12.0.1] - 2022-04-26
Added
- Compatibility with
GHC >= 9.0.0
[0.12.0.0] - 2021-11-20
Removed
RelativeValidity
, it was a misfeature.
[0.11.0.0] - 2020-04-17
Changed
- Made it so that Char is no longer trivially valid.
[0.10.0.0] - 2020-04-12
Changed
- Made it so that Word8, Word16, Word32 and Int8, Int16, Int32 are no longer trivially valid.
[0.9.0.3] - 2020-02-10
Changed
- Improved the ‘validateRatioNormalised’ to not crash on certain extreme values.
[0.9.0.2] - 2019-09-27
Added
isUtf16SurrogateCodePoint
and validateCharNotUtf16SurrogateCodePoint
Changed
- The contents of the error message when using
validateNotNan
or validateNotInfinite
is now more accurate.
Added
validateRatioNotNan
validateRatioNotInfinite
validateRatioNormalised
[0.9.0.1] - 2018-12-05
Changed
- The validity instance of
Ratio a
now disallows unnormalised values.
So 0 %: 1
is valid, but 0 %: 2
is not.
[0.9.0.0] - 2018-10-07
Added
prettyValidate
, validationIsValid
, prettyValidation
validateNotNaN
, validateNotInfinite
Changed
- Renamed
prettyValidation
to prettyValidate
before adding the new prettyValidation
.
NaN
, +Infinity
and -Infinity
are now considered valid for both Double
and Float
.
[0.8.0.0] - 2018-08-25
Added
decorateList
in Data.Validity
Changed
-0
is now a valid value for Double
and Float
.
Older versions
No history before version 0.8.0.0