Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data EnvVar
- newtype ExpanderT m a = Expander {
- runExpanderT :: [(String, EnvVar)] -> m (a, [(String, EnvVar)])
- localEnvironment :: Functor m => ExpanderT m a -> m a
- forkEnvironment :: (Functor m, Monad m, MonadIO m) => ExpanderT m a -> m a
- exportAll :: (Monad m, MonadIO m) => ExpanderT m ()
- expandVars :: (Monad m, Functor m, ChExpanderEnv m) => String -> m String
- isAnum :: Char -> Bool
- class Monad ee => ChExpanderEnv ee where
Documentation
Some environment variable
newtype ExpanderT m a Source #
Environment storage and variable expander.
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
expandVars :: (Monad m, Functor m, ChExpanderEnv m) => String -> m String Source #
Expand $variables
class Monad ee => ChExpanderEnv ee where Source #
Typeclass for all environment storages.
mgetv :: String -> ee EnvVar Source #
Get environment variable
mputv :: String -> EnvVar -> ee () Source #
Put environment variable