hscaffold-0.4.5.0: Very simple file/directory structure scaffolding writer monad EDSL

Safe HaskellSafe
LanguageHaskell2010

Hscaffold.Interpreter.Hsfiles

Synopsis

Documentation

toHsfiles :: Writer ScaffoldActionV a -> Text Source #

Run the scaffolding writer and return an .hsfiles Text to use with stack-templates

actionToHsfile :: FilePath -> ScaffoldActionType e -> [Text] Source #

Convert a single scaffolding action to hsfiles

Ignores everything but the file directives

writeToHsfiles :: MonadIO m => FilePath -> Writer ScaffoldActionV a -> m () Source #

Shortcut for

writeToHsfiles = do h <- toHsfiles w; liftIO $ Text.writeFile fp h