Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Env.Internal.Free
Contents
Description
Alt F
is the free Alternative
functor on F
Synopsis
- data Alt (f :: Type -> Type) a where
- liftAlt :: f a -> Alt f a
- runAlt :: forall f g a. Alternative g => (forall x. f x -> g x) -> Alt f a -> g a
- foldAlt :: Monoid p => (forall a. f a -> p) -> Alt f b -> p
- hoistAlt :: forall f g b. Functor g => (forall a. f a -> g a) -> Alt f b -> Alt g b
- inspect :: forall (f :: Type -> Type) a. Alt f a -> String
Documentation
data Alt (f :: Type -> Type) a where Source #
Constructors
Nope :: forall (f :: Type -> Type) a. Alt f a | |
Pure :: forall a (f :: Type -> Type). a -> Alt f a | |
Ap :: forall (f :: Type -> Type) a1 a. Alt f (a1 -> a) -> Alt f a1 -> Alt f a | |
Alt :: forall (f :: Type -> Type) a. Alt f a -> Alt f a -> Alt f a | |
Lift :: forall (f :: Type -> Type) a. f a -> Alt f a |
runAlt :: forall f g a. Alternative g => (forall x. f x -> g x) -> Alt f a -> g a Source #