chatty-0.6.4.1: Some monad transformers and typeclasses for abstraction of global dependencies.

Safe HaskellSafe
LanguageHaskell2010

Text.Chatty.Expansion.Vars

Synopsis

Documentation

data EnvVar Source

Some environment variable

Constructors

NotSet

Not set.

Literal String

An embeddable string.

forall a . Show a => Scalar a

Something we can show.

Array [EnvVar]

Array of that

Instances

localEnvironment :: Functor m => ExpanderT m a -> m a Source

Run this function inside a blank environment.

forkEnvironment :: (Functor m, Monad m, MonadIO m) => ExpanderT m a -> m a Source

Run this function in a locally modifiable, but not exported environment

exportAll :: (Monad m, MonadIO m) => ExpanderT m () Source

Export this local environment.

expandVars :: (Monad m, Functor m, ChExpanderEnv m) => String -> m String Source

Expand $variables

isAnum :: Char -> Bool Source

Is alphanumeric?