Module Spicey.SpiceUp

Main module to generate the initial Spicey application

Summary of exported operations:

systemBanner :: String  Deterministic 
setFileMode :: FileMode -> String -> IO ()  Deterministic 
spiceyStructure :: String -> DirTree  Non-deterministic 
patchMakeFile :: ERD -> String -> String  Deterministic 
replacePackageName :: String -> ERD -> String -> String  Deterministic 
ifNotExistsDo :: String -> IO () -> IO ()  Deterministic 
createStructure :: String -> String -> ERD -> String -> String -> DirTree -> IO ()  Deterministic 
Creates the structure of the source files of the new package.
main :: IO ()  Non-deterministic 
The main operation to start the scaffolding.
spiceupHelp :: Int -> IO ()  Deterministic 

Exported datatypes:


FileMode

Constructors:

  • Exec :: FileMode
  • NoExec :: FileMode

DirTree

Constructors:

  • Directory :: String -> [DirTree] -> DirTree
  • ResourceFile :: FileMode -> String -> DirTree
  • ResourcePatchFile :: FileMode -> String -> (ERD -> String -> String) -> DirTree
  • GeneratedFromERD :: (String -> ERD -> String -> String -> IO ()) -> DirTree

Exported operations:

systemBanner :: String  Deterministic 

setFileMode :: FileMode -> String -> IO ()  Deterministic 

spiceyStructure :: String -> DirTree  Non-deterministic 

patchMakeFile :: ERD -> String -> String  Deterministic 

replacePackageName :: String -> ERD -> String -> String  Deterministic 

ifNotExistsDo :: String -> IO () -> IO ()  Deterministic 

createStructure :: String -> String -> ERD -> String -> String -> DirTree -> IO ()  Deterministic 

Creates the structure of the source files of the new package.

main :: IO ()  Non-deterministic 

The main operation to start the scaffolding.

spiceupHelp :: Int -> IO ()  Deterministic