definition: |
createHtmlHelpers :: String -> ERD -> String -> String -> IO () createHtmlHelpers _ (ERD name entities relationship) path _ = saveToHtml name (getEntities erdt) (getRelationships erdt) where erdt = transform (ERD name entities relationship) saveToHtml :: String -> [Entity] -> [Relationship] -> IO () saveToHtml erdname allEntities relationships = do putStrLn $ "Saving 'View." ++ entitiesToHtmlModule erdname ++ ".curry'..." fileh <- openFile (path </> "EntitiesToHtml.curry") WriteMode hPutStr fileh (showCProg (generateToHtml erdname allEntities relationships)) hClose fileh |
demand: |
argument 2 |
deterministic: |
deterministic operation |
failfree: |
<FAILING> |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_,{ERD},_,_) |-> _} |
name: |
createHtmlHelpers |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
String -> Database.ERD.ERD -> String -> String -> Prelude.IO () |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |