Skip to content

Commit

Permalink
fix bad commit from before
Browse files Browse the repository at this point in the history
  • Loading branch information
mzero committed Nov 5, 2010
1 parent 67052c2 commit dcc2173
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
21 changes: 11 additions & 10 deletions seed/Template.hs
@@ -1,10 +1,11 @@
module Template where

import Text.Html

nu = () -- DO NOT DELETE THIS

page = thehtml << [
h1 << "Hi!",
paragraph << "testing"
]
module Template where

import Text.Html

nu = () -- DO NOT DELETE THIS

page = thehtml << [
h1 << "Hi!",
paragraph << "testing",
ulist << map (li <<) [ bold << "one", italics << "two", tt << "three"]
]
7 changes: 5 additions & 2 deletions seed/lib/DevUtils.hs
Expand Up @@ -63,28 +63,31 @@ topbar = thediv ! [identifier "topbar"] << [
, ulist ! [theclass "right"] << map li siteLinks
]
where
makelink (title, url) = anchor ! [href url] << title
makeDocLink doc = anchor ! [href $ docUrl doc, target "_blank"]
<< docName doc
makelink (title, url) = anchor ! [href url] << title
communityLinks =
[ ("Platform", "http://hackage.haskell.org/platform/")
, ("Hackage", "http://hackage.haskell.org/packages/hackage.html")
, ("Reddit", "http://www.reddit.com/r/haskell/")
, ("Stack Overflow",
"http://stackoverflow.com/questions/tagged?tagnames=haskell")
]
siteLinks =
[ makelink ("Home", "/")
, makelink ("Project", "/project")
, makelink ("Documentation", "/documentation")
+++ unordList (map makeDocLink documents)
, makelink ("Help", "/help")
, ("Help", "/help")
]


scripts :: [String] -> Html
scripts = toHtml . map script
where
script s = tag "script" ! [ thetype "text/javascript", src s ] << noHtml


data Doc = Doc { docId :: String, docName :: String, docUrl :: String }

documents :: [Doc]
Expand Down

0 comments on commit dcc2173

Please sign in to comment.