enumerate-function-0.0.1: simple package for inverting functions and testing totality, via brute enumeration of the domain

Safe HaskellNone
LanguageHaskell2010

Enumerate.Function.Types

Synopsis

Documentation

data Jectivity Source #

see "Enumerate.Function.Reify.getJectivityM"

Instances

Bounded Jectivity Source # 
Enum Jectivity Source # 
Eq Jectivity Source # 
Data Jectivity Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Jectivity -> c Jectivity #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Jectivity #

toConstr :: Jectivity -> Constr #

dataTypeOf :: Jectivity -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Jectivity) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Jectivity) #

gmapT :: (forall b. Data b => b -> b) -> Jectivity -> Jectivity #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Jectivity -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Jectivity -> r #

gmapQ :: (forall d. Data d => d -> u) -> Jectivity -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Jectivity -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Jectivity -> m Jectivity #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Jectivity -> m Jectivity #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Jectivity -> m Jectivity #

Ord Jectivity Source # 
Read Jectivity Source # 
Show Jectivity Source # 
Ix Jectivity Source # 
Generic Jectivity Source # 

Associated Types

type Rep Jectivity :: * -> * #

NFData Jectivity Source # 

Methods

rnf :: Jectivity -> () #

Enumerable Jectivity Source # 
type Rep Jectivity Source # 
type Rep Jectivity = D1 (MetaData "Jectivity" "Enumerate.Function.Types" "enumerate-function-0.0.1-5QoArEgJQi6BcghU01ilk1" False) ((:+:) (C1 (MetaCons "Injective" PrefixI False) U1) ((:+:) (C1 (MetaCons "Surjective" PrefixI False) U1) (C1 (MetaCons "Bijective" PrefixI False) U1)))

type Partial a b = forall m. MonadThrow m => a -> m b Source #

a (safely-)partial function. i.e. a function that:

type (-?>) a b = Partial a b Source #