fix that silly pattern warning
This commit is contained in:
parent
0c216cb2cd
commit
94208e44d5
@ -60,8 +60,7 @@ data QueryOpt = QueryOptInAcct AccountName -- ^ show an account register focuss
|
|||||||
|
|
||||||
inAccount :: [QueryOpt] -> Maybe AccountName
|
inAccount :: [QueryOpt] -> Maybe AccountName
|
||||||
inAccount [] = Nothing
|
inAccount [] = Nothing
|
||||||
inAccount (o:os) = case o of QueryOptInAcct a -> Just a; _ -> inAccount os
|
inAccount (QueryOptInAcct a:_) = Just a
|
||||||
-- inAccount = msum . map f where f o = case o of (QueryOptInAcct a) -> Just a; _ -> Nothing
|
|
||||||
|
|
||||||
-- | Convert a query expression containing zero or more space-separated
|
-- | 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:
|
-- terms to a matcher and zero or more query options. A query term is either:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user