From 6a7cfdf0880ee5c5367e794babb30fa7eac22f39 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Mon, 20 Aug 2012 15:48:11 -0400 Subject: [PATCH] Return-style fix. --- src/LWN/Page.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LWN/Page.hs b/src/LWN/Page.hs index cdcd1a6..3d53284 100644 --- a/src/LWN/Page.hs +++ b/src/LWN/Page.hs @@ -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 -- 2.44.2