Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Data type for representing ISBN values. Values of this type should be
created safely using validateISBN
, which will produce ISBN10
or ISBN13
values after validating the input.
The validateISBN10
and validateISBN13
functions can
also be used to only attempt to create ISBNs of a specific type.
To create ISBN
values without validation, use the unsafeToISBN10
and unsafeToISBN13
functions to coerce Text
values
into ISBN
values.