CurryInfo: currydoc-4.0.0 / CurryDoc.Html.genMainIndexPage

definition: Info
 
genMainIndexPage :: DocOptions -> String -> [String] -> IO ()
genMainIndexPage docopts docdir modnames = do
  putStrLn $ "Writing index page to '" ++ docdir ++ "/index.html'..."
  simplePage ("index.html", shorttitle)
             "Documentation of Curry modules"
             (Just pagetitle)
             allConsFuncsMenu (indexPage modnames)
   >>= writeFile (docdir++"/index.html")
 where
  shorttitle = if not (null (mainTitle docopts))
                 then [htxt $ mainTitle docopts]
                 else if length modnames == 1
                        then [code [htxt $ head modnames], nbsp,
                              htxt "documentation"]
                        else [htxt "Curry documentation"]

  pagetitle = if not (null (mainTitle docopts))
                then [htxt (mainTitle docopts)]
                else if length modnames == 1
                      then [htxt "Documentation of the Curry program ",
                            href (head modnames ++ ".html")
                                 [htxt (head modnames)]]
                      else [htxt "Documentation of Curry programs"]
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
-----------------------------------------------------------------------
generate the index page for the documentation directory:
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,_) |-> _}
name: Info
 genMainIndexPage
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 CurryDoc.Options.DocOptions -> String -> [String] -> Prelude.IO ()
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term