fix that silly pattern warning

This commit is contained in:
Simon Michael 2011-06-13 21:16:10 +00:00
parent 0c216cb2cd
commit 94208e44d5

View File

@ -60,8 +60,7 @@ data QueryOpt = QueryOptInAcct AccountName -- ^ show an account register focuss
inAccount :: [QueryOpt] -> Maybe AccountName
inAccount [] = Nothing
inAccount (o:os) = case o of QueryOptInAcct a -> Just a; _ -> inAccount os
-- inAccount = msum . map f where f o = case o of (QueryOptInAcct a) -> Just a; _ -> Nothing
inAccount (QueryOptInAcct a:_) = Just a
-- | Convert a query expression containing zero or more space-separated
-- terms to a matcher and zero or more query options. A query term is either: