;dev: cleanup
This commit is contained in:
parent
f4bdf80e71
commit
0ccfc78844
@ -490,8 +490,7 @@ fixSmartDateStr d s =
|
|||||||
fixSmartDateStrEither :: Day -> Text -> Either HledgerParseErrors Text
|
fixSmartDateStrEither :: Day -> Text -> Either HledgerParseErrors Text
|
||||||
fixSmartDateStrEither d = fmap showEFDate . fixSmartDateStrEither' d
|
fixSmartDateStrEither d = fmap showEFDate . fixSmartDateStrEither' d
|
||||||
|
|
||||||
fixSmartDateStrEither'
|
fixSmartDateStrEither' :: Day -> Text -> Either HledgerParseErrors EFDay
|
||||||
:: Day -> Text -> Either HledgerParseErrors EFDay
|
|
||||||
fixSmartDateStrEither' d s = case parsewith smartdateonly (T.toLower s) of
|
fixSmartDateStrEither' d s = case parsewith smartdateonly (T.toLower s) of
|
||||||
Right sd -> Right $ fixSmartDate d sd
|
Right sd -> Right $ fixSmartDate d sd
|
||||||
Left e -> Left e
|
Left e -> Left e
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user