envparse-0.4: Parse environment variables

Safe HaskellSafe
LanguageHaskell2010

Env.Internal.Free

Contents

Description

Alt F is the free Alternative functor on F

Synopsis

Documentation

data Alt f a where Source

Constructors

Nope :: Alt f a 
Pure :: a -> Alt f a 
Ap :: Alt f (a -> b) -> Alt f a -> Alt f b 
Alt :: Alt f a -> Alt f a -> Alt f a 
Lift :: f a -> Alt f a 

liftAlt :: f a -> Alt f a Source

runAlt :: forall f g a. Alternative g => (forall x. f x -> g x) -> Alt f a -> g a Source

foldAlt :: Monoid p => (forall a. f a -> p) -> Alt f b -> p Source

hoistAlt :: forall f g b. Functor g => (forall a. f a -> g a) -> Alt f b -> Alt g b Source

Debug

inspect :: Alt f a -> String Source

Print the free structure