| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Data.ISBN.Types
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.
When importing this data type, it is recommended not expose the
constructors, and instead use unsafeToISBN10 or
unsafeToISBN13 to coerce Text values into ISBN
values.