Copyright | (c) Fumiaki Kinoshita 2017 |
---|---|
License | BSD3 |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
- vacancy :: Generate xs => Nullable h :* xs
- coinclusion :: (Include ys xs, Generate ys) => Nullable (Membership xs) :* ys
- wrench :: (Generate ys, xs ⊆ ys) => (h :* xs) -> Nullable h :* ys
- retrench :: (Generate ys, xs ⊆ ys) => (h :| ys) -> Nullable ((:|) h) xs
- newtype Nullable h x = Nullable {
- getNullable :: Maybe (h x)
- mapNullable :: (g x -> h y) -> Nullable g x -> Nullable h y
Documentation
coinclusion :: (Include ys xs, Generate ys) => Nullable (Membership xs) :* ys Source #
The inverse of inclusion
.
wrench :: (Generate ys, xs ⊆ ys) => (h :* xs) -> Nullable h :* ys Source #
Extend a product and fill missing fields by Null
.
retrench :: (Generate ys, xs ⊆ ys) => (h :| ys) -> Nullable ((:|) h) xs Source #
Narrow the range of the sum, if possible.
Wrapped Maybe
Nullable | |
|
Wrapper k h => Wrapper k (Nullable k h) Source # | |
Eq (h x) => Eq (Nullable k h x) Source # | |
Ord (h x) => Ord (Nullable k h x) Source # | |
Show (h x) => Show (Nullable k h x) Source # | |
Generic (Nullable k h x) Source # | |
Semigroup (h x) => Monoid (Nullable k h x) Source # | |
Arbitrary (h x) => Arbitrary (Nullable k h x) Source # | |
NFData (h x) => NFData (Nullable k h x) Source # | |
Hashable (h x) => Hashable (Nullable k h x) Source # | |
type Repr k (Nullable k h) x Source # | |
type Rep (Nullable k h x) Source # | |
mapNullable :: (g x -> h y) -> Nullable g x -> Nullable h y Source #
Apply a function to its content.