fix thinko for the second time

It's almost like this part of haskell syntax is not very good..
This commit is contained in:
Joey Hess 2018-04-09 13:10:44 -04:00
parent 197b1510fa
commit de552bd469
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -33,11 +33,11 @@ dayMetaField :: MetaField
dayMetaField = mkMetaFieldUnchecked "day"
isDateMetaField :: MetaField -> Bool
isDateMetaField f = case f of
yearMetaField -> True
monthMetaField -> True
dayMetaField -> True
_ -> False
isDateMetaField f
| f == yearMetaField = True
| f == monthMetaField = True
| f == dayMetaField = True
| otherwise = False
lastChangedField :: MetaField
lastChangedField = mkMetaFieldUnchecked lastchanged