Copyright | (c) 2019-2022 Emily Pillmore |
---|---|
License | BSD-style |
Maintainer | Emily Pillmore <emilypi@cohomolo.gy>, sofia-m-a <https://github.com/sofia-m-a> |
Stability | stable |
Portability | non-portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Base16 a
- assertBase16 :: a -> Base16 a
- extractBase16 :: Base16 a -> a
Documentation
Wraps a value, asserting that it is or is intended to be
in a particular kind of Base16 encoding use extractBase16
to extract the value, and assertBase16
to tag a value
as base16-encoded
Instances
Eq1 Base16 Source # | |
Ord1 Base16 Source # | |
Defined in Data.Base16.Types.Internal | |
Applicative Base16 Source # | |
Functor Base16 Source # | |
Monad Base16 Source # | |
Show a => Show (Base16 a) Source # | |
NFData a => NFData (Base16 a) Source # | |
Defined in Data.Base16.Types.Internal | |
Eq a => Eq (Base16 a) Source # | |
Ord a => Ord (Base16 a) Source # | |
Defined in Data.Base16.Types.Internal |
assertBase16 :: a -> Base16 a Source #
Assert the provenance of a value.
Warning: This is a blind assertion that a particular value is base16 encoded in some alphabet. If you are not sure of the provenance of the value, you may experience odd behavior when attempting to decode. Use at your own risk. If I see any issues logged on this project from negligent use of this, Sofia and I will smite you.
extractBase16 :: Base16 a -> a Source #
Forget that a particular value is Base16-encoded