CurryInfo: currydoc-4.0.0 / CurryDoc.Main.prepareDocDir

definition:
prepareDocDir :: DocType -> String -> IO ()
prepareDocDir HtmlDoc docdir = do
  createDir docdir
  -- copy style sheets etc:
  let docstyledir = docdir </> "bt4"
  exdir <- doesDirectoryExist docstyledir
  unless exdir $ copyDirectory (includeDir </> "bt4") docstyledir
prepareDocDir TexDoc docdir = do
  createDir docdir
  putStrLn $ "Copy macros into documentation directory '"++docdir++"'..."
  copyIncludeIfPresent docdir "currydoc.tex"
prepareDocDir CDoc docdir = do
  createDir docdir
  putStrLn "Directory was succesfully created"
demand:
argument 1
deterministic:
deterministic operation
documentation:
-- create documentation directory (if necessary) with gifs and stylesheets:
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{({HtmlDoc},_) |-> _ || ({TexDoc},_) |-> _ || ({CDoc},_) |-> _}
name:
prepareDocDir
precedence:
no precedence defined
result-values:
_
signature:
CurryDoc.Options.DocType -> String -> Prelude.IO ()
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term