]> gitweb.michael.orlitzky.com - dead/lwn-epub.git/blobdiff - src/LWN/Page.hs
Merge branch 'master' of michael.orlitzky.com:/var/www/orlitzky.com/michael/public...
[dead/lwn-epub.git] / 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