showDateSpan: remove redundant local definition of showDate

This commit is contained in:
Peter Simons 2014-03-22 11:31:59 +01:00
parent a56231751f
commit 6319ecd0b7

View File

@ -82,12 +82,10 @@ showDate = formatTime defaultTimeLocale "%0C%y/%m/%d"
showDateSpan (DateSpan from to) =
concat
[maybe "" showdate from
[maybe "" showDate from
,"-"
,maybe "" (showdate . prevday) to
,maybe "" (showDate . prevday) to
]
where
showdate = formatTime defaultTimeLocale "%C%y/%m/%d"
-- | Get the current local date.
getCurrentDay :: IO Day