]> gitweb.michael.orlitzky.com - dead/lwn-epub.git/commitdiff
Return-style fix.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 20 Aug 2012 19:48:11 +0000 (15:48 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 20 Aug 2012 19:48:11 +0000 (15:48 -0400)
src/LWN/Page.hs

index cdcd1a602e1add49f729f5a5f7263eebae2e69a5..3d53284c4b66e9c67ff222d19982ce4e2ced45d2 100644 (file)
@@ -302,9 +302,9 @@ fp_parse :: IOSArrow XmlTree XmlTree -> IO (Maybe Page)
 fp_parse xml = do
     hl <- parse_headline xml
     parsed_articles <- fp_parse_articles xml
-    case parsed_articles of
-      []          -> return Nothing
-      x -> return $ Just $ FullPage (fromJust hl) x
+    return $ case parsed_articles of
+      [] -> Nothing
+      x  -> Just $ FullPage (fromJust hl) x