diff options
author | David Waern <david.waern@gmail.com> | 2012-02-04 21:37:16 +0100 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2012-02-04 21:43:49 +0100 |
commit | 12d931b4c3fcd6d8e26cc48b9072b4291efa5cdb (patch) | |
tree | e9e035574c5b9571a2ceaad5de33939c5bf04bfd /src/Haddock/Interface/ParseModuleHeader.hs | |
parent | ac8e218ba6407fc826fc54e0f1b7ac23c0c6b338 (diff) |
Mostly hlint-inspired cleanup.
Diffstat (limited to 'src/Haddock/Interface/ParseModuleHeader.hs')
-rw-r--r-- | src/Haddock/Interface/ParseModuleHeader.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Haddock/Interface/ParseModuleHeader.hs b/src/Haddock/Interface/ParseModuleHeader.hs index 35533d0d..411b6661 100644 --- a/src/Haddock/Interface/ParseModuleHeader.hs +++ b/src/Haddock/Interface/ParseModuleHeader.hs @@ -137,14 +137,14 @@ parseKey key toParse0 = (spaces1,cs1) = extractLeadingSpaces cs in (c:spaces1,cs1) - | True = ([],s) + | otherwise = ([],s) extractNextLine :: String -> (String,String) extractNextLine [] = ([],[]) extractNextLine (c:cs) | c == '\n' = ([],cs) - | True = + | otherwise = let (line,rest) = extractNextLine cs in @@ -156,5 +156,5 @@ parseKey key toParse0 = extractPrefix _ [] = Nothing extractPrefix (c1:cs1) (c2:cs2) | toUpper c1 == toUpper c2 = extractPrefix cs1 cs2 - | True = Nothing + | otherwise = Nothing |