@@ -1,7 +1,7 @@
1−title w = size w 60 . box 4 . text . header . toText $ "Elm-Happstack"
1+title w = size w 60 . box 4 . text . header . toText $ "Elm-Yesod"
22
3−lightGrey = rgb (240/255) (241/255) (244/255)
4−mediumGrey = rgb (216/255) (221/255) (225/255)
3+lightGrey = rgb 240 241 244
4+mediumGrey = rgb 216 221 225
55heading outer inner =
66 color mediumGrey . size outer 61 . box 1 .
77 color lightGrey . size outer 60 . box 5 .
@@ -18,16 +18,16 @@ skeleton body outer =
1818section = text . bold . Text.height (5/4) . toText
1919
2020info w = List.map (\f -> f ()) . List.intersperse (\x -> plainText " ") . List.map ((\e x -> e) . width w) $
21− [ section "Written in Elm, served with Happstack"
21+ [ section "Written in Elm, served with Yesod"
2222 , text $ toText "This page is written in " ++ link "http://elm-lang.org/" (toText "Elm") ++
2323 toText " and served using the " ++
24− link "http://happstack.com/" (toText "Happstack Web Framework") ++
24+ link "http://yesodweb.com/" (toText "Yesod Web Framework") ++
2525 toText ". Since you are looking at this page it is safe to assume that you already have the example code. "
26− , text $ toText "A second Happstack example using web-routes will be added later on."
26+ , text $ toText "Type-safe URLs are rendered using simple QuasiQuoter variable interpolation."
2727 , section "More examples:"
28− , text $ toText "- " ++ link "#{mouse}" (toText "A simple mouse input example")
29− , text $ toText "- " ++ link "#{clock}" (toText "An animated analog clock")
30− , text $ toText "- " ++ link "#{shapes}" (toText "Some simple rendered shapes")
28+ , text $ toText "- " ++ link "@{MouseR}" (toText "A simple mouse input example")
29+ , text $ toText "- " ++ link "@{ClockR}" (toText "An animated analog clock")
30+ , text $ toText "- " ++ link "@{ShapesR}" (toText "Some simple rendered shapes")
3131 ]
3232
3333body outer inner = width outer . box 2 . flow down . (:) (plainText " ") $ info inner