Skip to content

Commit

Permalink
Resolved unused-local-binds warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jmitchell committed Feb 17, 2017
1 parent c2f9a52 commit b116011
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Yst/Render.hs
Expand Up @@ -85,10 +85,10 @@ renderNavNode targeturl (NavPage tit pageurl) =
renderNavNode targeturl (NavMenu tit nodes) = li_ [] $
do a_ [class_ "tree-toggle nav-header"] (toHtml tit)
ul_ [class_ "nav tree"] (mapM_ (renderNavNode targeturl) nodes)
where active = targeturl `isInNavNodes` nodes
isInNavNodes u = any (isInNavNode u)
isInNavNode u (NavPage _ u') = u == u'
isInNavNode u (NavMenu _ ns) = u `isInNavNodes` ns
-- where active = targeturl `isInNavNodes` nodes
-- isInNavNodes u = any (isInNavNode u)
-- isInNavNode u (NavPage _ u') = u == u'
-- isInNavNode u (NavMenu _ ns) = u `isInNavNodes` ns

formatFromExtension :: FilePath -> Format
formatFromExtension f = case (map toLower $ takeExtension f) of
Expand Down

0 comments on commit b116011

Please sign in to comment.