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, ExpanderEnv m) => String -> m String
- isAnum :: Char -> Bool
- class Monad ee => ExpanderEnv ee where
Documentation
Some environment variable
Environment storage and variable expander.
MonadTrans ExpanderT | |
Monad m => Monad (ExpanderT m) | |
Monad m => Functor (ExpanderT m) | |
MonadIO m => MonadIO (ExpanderT m) | |
MonadRandom m0 => MonadRandom (ExpanderT m0) | |
MonadClock m0 => MonadClock (ExpanderT m0) | |
MonadFinalizer m0 => MonadFinalizer (ExpanderT m0) | |
MonadScanner m0 => MonadScanner (ExpanderT m0) | |
MonadPrinter m0 => MonadPrinter (ExpanderT m0) | |
MonadSpawn m0 => MonadSpawn (ExpanderT m0) | |
ExtendedPrinter m0 => ExtendedPrinter (ExpanderT m0) | |
MonadExpand m => MonadExpand (ExpanderT m) | |
Monad m => ExpanderEnv (ExpanderT m) | |
HistoryEnv m0 => HistoryEnv (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, ExpanderEnv m) => String -> m StringSource
Expand $variables. TODO: ${var}
class Monad ee => ExpanderEnv ee whereSource
Typeclass for all environment storages.
mgetv :: String -> ee EnvVarSource
Get environment variable
mputv :: String -> EnvVar -> ee ()Source
Put environment variable
ExpanderEnv IO | |
ExpanderEnv m0 => ExpanderEnv (HandleCloserT m0) | |
ExpanderEnv m0 => ExpanderEnv (InRedirT m0) | |
ExpanderEnv m0 => ExpanderEnv (QuietT m0) | |
ExpanderEnv m0 => ExpanderEnv (HereStringT m0) | |
ExpanderEnv m0 => ExpanderEnv (RecorderT m0) | |
ExpanderEnv m0 => ExpanderEnv (OutRedirT m0) | |
ExpanderEnv m0 => ExpanderEnv (DeafT m0) | |
ExpanderEnv m0 => ExpanderEnv (SpawnOverlayT m0) | |
ExpanderEnv m0 => ExpanderEnv (HtmlPrinterT m0) | |
ExpanderEnv m0 => ExpanderEnv (AnsiPrinterT m0) | |
Monad m => ExpanderEnv (ExpanderT m) | |
ExpanderEnv m0 => ExpanderEnv (HistoryT m0) |