Skip to content

Commit 2cb746a

Browse files
committed
Fix warnings
1 parent b6edb5b commit 2cb746a

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

hl.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cabal-version: >=1.8
1313

1414
executable hl
1515
hs-source-dirs: src/
16-
ghc-options: -Wall -O2
16+
ghc-options: -Wall -O2 -fno-warn-unused-do-bind
1717
main-is: Main.hs
1818
build-depends: blaze-html,
1919
monad-extras,

src/HL/V.hs

+23
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,38 @@ import Yesod.Senza as V
1919
-- Latest Bootstrap requires extra work to get the old grid layout
2020
-- behaviour of spans. I'll probably move this into senza.
2121

22+
span1 :: [Attribute] -> Senza -> Senza
2223
span1 xs = div ([class_ "span1 col-md-1"] ++ xs)
24+
25+
span2 :: [Attribute] -> Senza -> Senza
2326
span2 xs = div ([class_ "span2 col-md-2"] ++ xs)
27+
28+
span3 :: [Attribute] -> Senza -> Senza
2429
span3 xs = div ([class_ "span3 col-md-3"] ++ xs)
30+
31+
span4 :: [Attribute] -> Senza -> Senza
2532
span4 xs = div ([class_ "span4 col-md-4"] ++ xs)
33+
34+
span5 :: [Attribute] -> Senza -> Senza
2635
span5 xs = div ([class_ "span5 col-md-5"] ++ xs)
36+
37+
span6 :: [Attribute] -> Senza -> Senza
2738
span6 xs = div ([class_ "span6 col-md-6"] ++ xs)
39+
40+
span7 :: [Attribute] -> Senza -> Senza
2841
span7 xs = div ([class_ "span7 col-md-7"] ++ xs)
42+
2943
span8 xs = div ([class_ "span8 col-md-8"] ++ xs)
44+
span8 :: [Attribute] -> Senza -> Senza
45+
3046
span9 xs = div ([class_ "span9 col-md-9"] ++ xs)
47+
span9 :: [Attribute] -> Senza -> Senza
48+
3149
span10 xs = div ([class_ "span10 col-md-10"] ++ xs)
50+
span10 :: [Attribute] -> Senza -> Senza
51+
3252
span11 xs = div ([class_ "span11 col-md-11"] ++ xs)
53+
span11 :: [Attribute] -> Senza -> Senza
54+
3355
span12 xs = div ([class_ "span12 col-md-12"] ++ xs)
56+
span12 :: [Attribute] -> Senza -> Senza

src/HL/V/Template.hs

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ template
2121
template crumbs ptitle inner =
2222
skeleton
2323
ptitle
24-
(\cur url -> return ())
24+
(\_ _ -> return ())
2525
(\cur url ->
2626
div [class_ "template"]
2727
(do navigation True cur url
@@ -206,6 +206,8 @@ footer r =
206206
Nothing ->
207207
a [href "http://www.haskell.org/haskellwiki/"]
208208
"Go to haskell.org wiki"
209-
Just page ->
210-
a [href (toValue ("http://www.haskell.org/haskellwiki/index.php?title=" <> page <> "&action=edit"))]
209+
Just pn ->
210+
a [href (toValue ("http://www.haskell.org/haskellwiki/index.php?title=" <>
211+
pn <>
212+
"&action=edit"))]
211213
"Edit this page"

0 commit comments

Comments
 (0)