holy-project-0.2.0.1: Start your Haskell project with cabal, git and tests.

Safe HaskellNone
LanguageHaskell2010

HolyProject

Synopsis

Documentation

data Project #

Record containing all information to initialize a project

Instances

Data Project # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Project -> c Project #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Project #

toConstr :: Project -> Constr #

dataTypeOf :: Project -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Project) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Project) #

gmapT :: (forall b. Data b => b -> b) -> Project -> Project #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Project -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Project -> r #

gmapQ :: (forall d. Data d => d -> u) -> Project -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Project -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Project -> m Project #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Project -> m Project #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Project -> m Project #

holyError :: String -> IO () #

Randomly choose an end scenario and then show a "serious" error message

ioassert :: Bool -> String -> IO () #

Assert something true. In any other case show the holy error

holyStarter :: IO () #

Ask, questions and create the initial project

getCurrentYear :: IO String #

 Simply return the current year as String

intro :: IO () #

Show an introduction test

end :: IO () #

Show the final dialog

genFile #

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 () #

This function is where we create the project once the question are answered