Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
Either one of something, or two of it.
Use oneOrTwo
to deconstruct.
Instances
Foldable OneOrTwo Source # | |
Defined in Data.OneOrTwo fold :: Monoid m => OneOrTwo m -> m # foldMap :: Monoid m => (a -> m) -> OneOrTwo a -> m # foldMap' :: Monoid m => (a -> m) -> OneOrTwo a -> m # foldr :: (a -> b -> b) -> b -> OneOrTwo a -> b # foldr' :: (a -> b -> b) -> b -> OneOrTwo a -> b # foldl :: (b -> a -> b) -> b -> OneOrTwo a -> b # foldl' :: (b -> a -> b) -> b -> OneOrTwo a -> b # foldr1 :: (a -> a -> a) -> OneOrTwo a -> a # foldl1 :: (a -> a -> a) -> OneOrTwo a -> a # elem :: Eq a => a -> OneOrTwo a -> Bool # maximum :: Ord a => OneOrTwo a -> a # minimum :: Ord a => OneOrTwo a -> a # | |
Traversable OneOrTwo Source # | |
Functor OneOrTwo Source # | |
Data x => Data (OneOrTwo x) Source # | |
Defined in Data.OneOrTwo gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> OneOrTwo x -> c (OneOrTwo x) # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (OneOrTwo x) # toConstr :: OneOrTwo x -> Constr # dataTypeOf :: OneOrTwo x -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (OneOrTwo x)) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (OneOrTwo x)) # gmapT :: (forall b. Data b => b -> b) -> OneOrTwo x -> OneOrTwo x # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> OneOrTwo x -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> OneOrTwo x -> r # gmapQ :: (forall d. Data d => d -> u) -> OneOrTwo x -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> OneOrTwo x -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> OneOrTwo x -> m (OneOrTwo x) # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> OneOrTwo x -> m (OneOrTwo x) # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> OneOrTwo x -> m (OneOrTwo x) # | |
Generic (OneOrTwo x) Source # | |
Read x => Read (OneOrTwo x) Source # | |
Show x => Show (OneOrTwo x) Source # | |
Eq x => Eq (OneOrTwo x) Source # | |
Ord x => Ord (OneOrTwo x) Source # | |
type Rep (OneOrTwo x) Source # | |
Defined in Data.OneOrTwo type Rep (OneOrTwo x) = D1 ('MetaData "OneOrTwo" "Data.OneOrTwo" "interval-patterns-0.8.0-BzcshY5RLEW8SWgNfdCVP3" 'False) (C1 ('MetaCons "One" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 x)) :+: C1 ('MetaCons "Two" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 x) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 x))) |