| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
HolyProject
Documentation
Record containing all information to initialize a project
Constructors
| Project | |
holyError :: String -> IO () Source
Randomly choose an end scenario and then show a "serious" error message
ioassert :: Bool -> String -> IO () Source
Assert something true. In any other case show the holy error
holyStarter :: IO () Source
Ask, questions and create the initial project
getCurrentYear :: IO String Source
Simply return the current year as String
Arguments
| :: MuContext IO | hastache context |
| -> String | Data file name (without 'scaffold/' see in .cabal) |
| -> FilePath | The destination file path |
| -> IO () |
This function use a Data file mustache template and a hastache context to write a destination file
createProject :: Project -> IO () Source
This function is where we create the project once the question are answered