| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Enumerate.Function.Types
- data Jectivity
- type Partial a b = forall m. MonadThrow m => a -> m b
- type (-?>) a b = Partial a b
Documentation
see "Enumerate.Function.Reify.getJectivityM"
Constructors
| Injective | |
| Surjective | |
| Bijective |
type Partial a b = forall m. MonadThrow m => a -> m b Source
a (safely-)partial function. i.e. a function that:
- fails only via the
throwMmethod ofMonadThrow - succeeds only via the
returnmethod ofMonad