Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
In this module, instances have been annotated with the interpretation of the Neither type that they use.
Documentation
The Neither type has a single constructor and ignores its type arguments
Instances
Bitraversable Neither # | An empty container, that, when in an applicative, must always be a minimally wrapped constant value |
Defined in Data.Neither bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Neither a b -> f (Neither c d) # | |
Bifoldable Neither # | An empty container which folds to the starting value or the identity |
Bifunctor Neither # | An empty container |
Eq2 Neither # | Empty container that is equal to itself (with no values to compare) |
Ord2 Neither # | Empty container that is equal to itself (with no values to compare) |
Defined in Data.Neither | |
Arrow Neither # | A dummy function representation |
ArrowZero Neither # | A dummy function representation, so the zero arrow is merely unique by its type parameters |
Defined in Data.Neither | |
ArrowPlus Neither # | The trivial single element monoid on a dummy function representation |
ArrowChoice Neither # | A dummy function representation, where all choices are the same |
ArrowApply Neither # | A dummy function representation, where application returns another dummy |
Defined in Data.Neither | |
ArrowLoop Neither # | A dummy function representation, where recursion creation returns another dummy |
Defined in Data.Neither | |
Monad (Neither a) # | An empty container |
Functor (Neither a) # | An empty container |
MonadFix (Neither a) # | All functions from Neither to Neither must have Neither as a fixed point (if you ignore types) |
Defined in Data.Neither | |
MonadFail (Neither a) # | An empty container |
Defined in Data.Neither | |
Applicative (Neither a) # | An empty container |
Foldable (Neither a) # | An empty container which folds to the starting value or the identity |
Defined in Data.Neither fold :: Monoid m => Neither a m -> m # foldMap :: Monoid m => (a0 -> m) -> Neither a a0 -> m # foldMap' :: Monoid m => (a0 -> m) -> Neither a a0 -> m # foldr :: (a0 -> b -> b) -> b -> Neither a a0 -> b # foldr' :: (a0 -> b -> b) -> b -> Neither a a0 -> b # foldl :: (b -> a0 -> b) -> b -> Neither a a0 -> b # foldl' :: (b -> a0 -> b) -> b -> Neither a a0 -> b # foldr1 :: (a0 -> a0 -> a0) -> Neither a a0 -> a0 # foldl1 :: (a0 -> a0 -> a0) -> Neither a a0 -> a0 # toList :: Neither a a0 -> [a0] # null :: Neither a a0 -> Bool # length :: Neither a a0 -> Int # elem :: Eq a0 => a0 -> Neither a a0 -> Bool # maximum :: Ord a0 => Neither a a0 -> a0 # minimum :: Ord a0 => Neither a a0 -> a0 # | |
Traversable (Neither a) # | An empty container, that, when in an applicative, must always be a minimally wrapped constant value |
Contravariant (Neither a) # | An empty container or an uncallable or no-op function representation |
Eq1 (Neither a) # | Empty container that is equal to itself (with no values to compare) |
Ord1 (Neither a) # | Empty container that is equal to itself (with no values to compare) |
Defined in Data.Neither | |
MonadZip (Neither a) # | An empty container |
MonadIO (Neither a) # | An empty container |
Defined in Data.Neither | |
Alternative (Neither a) # | An empty container with no-ops |
MonadPlus (Neither a) # | An empty container with no-ops |
Category Neither # | The constant functor from Set to 1 |
Bounded (Neither a b) # | |
Enum (Neither a b) # | |
Defined in Data.Neither succ :: Neither a b -> Neither a b # pred :: Neither a b -> Neither a b # toEnum :: Int -> Neither a b # fromEnum :: Neither a b -> Int # enumFrom :: Neither a b -> [Neither a b] # enumFromThen :: Neither a b -> Neither a b -> [Neither a b] # enumFromTo :: Neither a b -> Neither a b -> [Neither a b] # enumFromThenTo :: Neither a b -> Neither a b -> Neither a b -> [Neither a b] # | |
Eq (Neither a b) # | |
Floating (Neither a b) # | A trivial single element exponential field, where every number is Neither |
Defined in Data.Neither exp :: Neither a b -> Neither a b # log :: Neither a b -> Neither a b # sqrt :: Neither a b -> Neither a b # (**) :: Neither a b -> Neither a b -> Neither a b # logBase :: Neither a b -> Neither a b -> Neither a b # sin :: Neither a b -> Neither a b # cos :: Neither a b -> Neither a b # tan :: Neither a b -> Neither a b # asin :: Neither a b -> Neither a b # acos :: Neither a b -> Neither a b # atan :: Neither a b -> Neither a b # sinh :: Neither a b -> Neither a b # cosh :: Neither a b -> Neither a b # tanh :: Neither a b -> Neither a b # asinh :: Neither a b -> Neither a b # acosh :: Neither a b -> Neither a b # atanh :: Neither a b -> Neither a b # log1p :: Neither a b -> Neither a b # expm1 :: Neither a b -> Neither a b # | |
Fractional (Neither a b) # | A trivial single element field where every ratio is Neither |
Integral (Neither a b) # | A number type that only contains zero, or a trivial single element euclidean domain |
Defined in Data.Neither quot :: Neither a b -> Neither a b -> Neither a b # rem :: Neither a b -> Neither a b -> Neither a b # div :: Neither a b -> Neither a b -> Neither a b # mod :: Neither a b -> Neither a b -> Neither a b # quotRem :: Neither a b -> Neither a b -> (Neither a b, Neither a b) # divMod :: Neither a b -> Neither a b -> (Neither a b, Neither a b) # | |
(Data a, Data b) => Data (Neither a b) # | |
Defined in Data.Neither gfoldl :: (forall d b0. Data d => c (d -> b0) -> d -> c b0) -> (forall g. g -> c g) -> Neither a b -> c (Neither a b) # gunfold :: (forall b0 r. Data b0 => c (b0 -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Neither a b) # toConstr :: Neither a b -> Constr # dataTypeOf :: Neither a b -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Neither a b)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Neither a b)) # gmapT :: (forall b0. Data b0 => b0 -> b0) -> Neither a b -> Neither a b # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Neither a b -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Neither a b -> r # gmapQ :: (forall d. Data d => d -> u) -> Neither a b -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Neither a b -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Neither a b -> m (Neither a b) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Neither a b -> m (Neither a b) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Neither a b -> m (Neither a b) # | |
Num (Neither a b) # | A trivial single element group with no-ops, where every integer is Neither |
Defined in Data.Neither (+) :: Neither a b -> Neither a b -> Neither a b # (-) :: Neither a b -> Neither a b -> Neither a b # (*) :: Neither a b -> Neither a b -> Neither a b # negate :: Neither a b -> Neither a b # abs :: Neither a b -> Neither a b # signum :: Neither a b -> Neither a b # fromInteger :: Integer -> Neither a b # | |
Ord (Neither a b) # | |
Read (Neither a b) # | |
Real (Neither a b) # | A number type that only contains zero |
Defined in Data.Neither toRational :: Neither a b -> Rational # | |
RealFrac (Neither a b) # | A number type that only contains zero |
Show (Neither a b) # | |
Ix (Neither a b) # | There is only one Neither value |
Defined in Data.Neither range :: (Neither a b, Neither a b) -> [Neither a b] # index :: (Neither a b, Neither a b) -> Neither a b -> Int # unsafeIndex :: (Neither a b, Neither a b) -> Neither a b -> Int # inRange :: (Neither a b, Neither a b) -> Neither a b -> Bool # rangeSize :: (Neither a b, Neither a b) -> Int # unsafeRangeSize :: (Neither a b, Neither a b) -> Int # | |
IsString (Neither a b) # | Every string is Neither |
Defined in Data.Neither fromString :: String -> Neither a b # | |
Semigroup (Neither a b) # | The trivial single element semigroup |
Monoid (Neither a b) # | The trivial single element monoid |
Bits (Neither a b) # | A bitstring with zero length |
Defined in Data.Neither (.&.) :: Neither a b -> Neither a b -> Neither a b # (.|.) :: Neither a b -> Neither a b -> Neither a b # xor :: Neither a b -> Neither a b -> Neither a b # complement :: Neither a b -> Neither a b # shift :: Neither a b -> Int -> Neither a b # rotate :: Neither a b -> Int -> Neither a b # setBit :: Neither a b -> Int -> Neither a b # clearBit :: Neither a b -> Int -> Neither a b # complementBit :: Neither a b -> Int -> Neither a b # testBit :: Neither a b -> Int -> Bool # bitSizeMaybe :: Neither a b -> Maybe Int # bitSize :: Neither a b -> Int # isSigned :: Neither a b -> Bool # shiftL :: Neither a b -> Int -> Neither a b # unsafeShiftL :: Neither a b -> Int -> Neither a b # shiftR :: Neither a b -> Int -> Neither a b # unsafeShiftR :: Neither a b -> Int -> Neither a b # rotateL :: Neither a b -> Int -> Neither a b # | |
FiniteBits (Neither a b) # | A bitstring with zero length |
Defined in Data.Neither finiteBitSize :: Neither a b -> Int # countLeadingZeros :: Neither a b -> Int # countTrailingZeros :: Neither a b -> Int # |