Skip to content

Instantly share code, notes, and snippets.

@yamadapc
Created August 19, 2016 16:58
Show Gist options
  • Save yamadapc/8fa9cde2c5ddf0f76d6e449f998edffd to your computer and use it in GitHub Desktop.
Save yamadapc/8fa9cde2c5ddf0f76d6e449f998edffd to your computer and use it in GitHub Desktop.

hscaffold

Very simple file/directory structure scaffolding writer monad EDSL

runHscaffold "." $ do
    file "./.gitignore" (Text.unlines [ ".stack-work"
                                      , "stuff"
                                      , "here"
                                      ])
    directory "./src" $ do
        file "./Main.hs" "main = putStrLn \"Hello World\""
        file "./Other.hs" "other = putStrLn \"Hello You\""

License

MIT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment