drasil-gool-0.1.1.0: A framework for code and document generation for scientific software - GOOL SubPackage
Safe HaskellSafe-Inferred
LanguageHaskell2010

GOOL.Drasil.Helpers

Documentation

hicat :: Doc -> [Doc] -> Doc Source #

vicat :: Doc -> [Doc] -> Doc Source #

vmap :: (a -> Doc) -> [a] -> Doc Source #

vimap :: Doc -> (a -> Doc) -> [a] -> Doc Source #

emptyIfNull :: [a] -> Doc -> Doc Source #

toCode :: Monad r => a -> r a Source #

toState :: a -> State s a Source #

onCodeValue :: Functor r => (a -> b) -> r a -> r b Source #

onStateValue :: (a -> b) -> State s a -> State s b Source #

on2CodeValues :: Applicative r => (a -> b -> c) -> r a -> r b -> r c Source #

on2StateValues :: (a -> b -> c) -> State s a -> State s b -> State s c Source #

on3CodeValues :: Applicative r => (a -> b -> c -> d) -> r a -> r b -> r c -> r d Source #

on3StateValues :: (a -> b -> c -> d) -> State s a -> State s b -> State s c -> State s d Source #

onCodeList :: Monad m => ([a] -> b) -> [m a] -> m b Source #

onStateList :: ([a] -> b) -> [State s a] -> State s b Source #

on2StateLists :: ([a] -> [b] -> c) -> [State s a] -> [State s b] -> State s c Source #

on2StateWrapped :: Monad m => (a -> b -> m c) -> m a -> m b -> m c Source #