-- Informatics 1 - Functional Programming
-- Tutorial 4
--
-- Solutions
--
-- Remember: there are many possible solutions, and if your solution produces
-- the right results, then it is (most likely) correct. However, if your code
-- looks far more complicated than these sample solutions, then you're probably
-- making things too difficult for yourself---try to keep it simple!
import Data.List (nub)
import Data.Char
import Test.QuickCheck
import Network.HTTP (simpleHTTP,getRequest,getResponseBody)
--
type Link = String
type Name = String
type Email = String
type HTML = String
type URL = String
--
--
testURL = "http://www.inf.ed.ac.uk/teaching/courses/inf1/fp/testpage.html"
testHTML :: String
testHTML = ""
++ ""
++ "FP: Tutorial 4"
++ ""
++ ""
++ "A Boring test page
"
++ "for tutorial 4
"
++ "FP Website
"
++ "Lecturer: Don Sannella
"
++ "TA: Chris Banks"
++ ""
++ ""
testLinks :: [Link]
testLinks = [ "http://www.inf.ed.ac.uk/teaching/courses/inf1/fp/\">FP Website
Lecturer: "
, "mailto:dts@inf.ed.ac.uk\">Don Sannella
TA: "
, "mailto:c.banks@ed.ac.uk\">Chris Banks