Commit 255ffa7e authored by Michael Hanus 's avatar Michael Hanus
Browse files

Examples adapted to new html package

parent 3e9a1fe5
......@@ -8,7 +8,8 @@
"abstract-curry": ">= 1.0.0",
"cass-analysis" : ">= 0.0.4",
"cass" : ">= 0.0.1",
"currycheck" : ">= 1.0.0"
"currycheck" : ">= 1.0.0",
"html" : ">= 1.1.0"
},
"compilerCompatibility": {
"pakcs": ">= 1.14.0, < 2.0.0",
......
......@@ -5,7 +5,7 @@
--- easy writing of HTML code in Curry programs.
------------------------------------------------------------------------------
import HTML
import HTML.Base
{-
Remark:
......@@ -31,7 +31,7 @@ test1 name = putStrLn $ showHtmlExps ``html
<h1>Hello {name}!</h1>
<p>
Sorry, i've got nothing to say...but:
<h2>{(reverse sey)++"we "++"can!"}
<h2>{reverse sey ++ "we " ++ "can!"}
Have a wonderful time!''
sey :: String
......
......@@ -6,7 +6,7 @@
-- to reverse or duplicate the input.
------------------------------------------------------------------------------
import HTML
import HTML.Base
{-
Remark:
......@@ -43,4 +43,4 @@ main = return $ form "Question" $
-- Install the CGI program by:
-- curry makecgi -o ~/public_html/revdup.cgi RevDup
-- curry makecgi -cpm -o ~/public_html/revdup.cgi RevDup
......@@ -5,7 +5,7 @@
--- easy writing of HTML code in Curry programs.
------------------------------------------------------------------------------
import HTML
import HTML.Base
import Test.EasyCheck
htmlTest1 :: String -> [HtmlExp]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment