Safe Haskell | Safe-Inferred |
---|
- 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
Environment storage and variable expander.
MonadTrans ExpanderT | |
ChChannelPrinter Bool m0 => ChChannelPrinter Bool (ExpanderT m0) | |
ChChannelPrinter Int m0 => ChChannelPrinter Int (ExpanderT m0) | |
ChChannelPrinter Handle m0 => ChChannelPrinter Handle (ExpanderT m0) | |
Monad m => Monad (ExpanderT m) | |
Monad m => Functor (ExpanderT m) | |
MonadIO m => MonadIO (ExpanderT m) | |
ChRandom m0 => ChRandom (ExpanderT m0) | |
ChClock m0 => ChClock (ExpanderT m0) | |
ChFinalizer m0 => ChFinalizer (ExpanderT m0) | |
ChScanner m0 => ChScanner (ExpanderT m0) | |
ChBufferedScanner m0 => ChBufferedScanner (ExpanderT m0) | |
ChPrinter m0 => ChPrinter (ExpanderT m0) | |
ChSpawn m0 => ChSpawn (ExpanderT m0) | |
ChExpand m => ChExpand (ExpanderT m) | |
Monad m => ChExpanderEnv (ExpanderT m) | |
ChHistoryEnv m0 => ChHistoryEnv (ExpanderT m0) |
localEnvironment :: Functor m => ExpanderT m a -> m aSource
Run this function inside a blank environment.
forkEnvironment :: (Functor m, Monad m, MonadIO m) => ExpanderT m a -> m aSource
Run this function in a locally modifiable, but not exported environment
expandVars :: (Monad m, Functor m, ChExpanderEnv m) => String -> m StringSource
Expand $variables
class Monad ee => ChExpanderEnv ee whereSource
Typeclass for all environment storages.
mgetv :: String -> ee EnvVarSource
Get environment variable
mputv :: String -> EnvVar -> ee ()Source
Put environment variable