X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=time-http.git;a=blobdiff_plain;f=Data%2FTime%2FAsctime%2FInternal.hs;h=1681fc0d281752af5a66775c159fa6923230baa5;hp=f7077596c0a1d7e9a36b1ed642ade35344896d43;hb=e322e3c65458dd6004ae4d2fbf5e82ce9aaee162;hpb=1029ed1724795d960c3117be35380d3a9c92c6ed diff --git a/Data/Time/Asctime/Internal.hs b/Data/Time/Asctime/Internal.hs index f707759..1681fc0 100644 --- a/Data/Time/Asctime/Internal.hs +++ b/Data/Time/Asctime/Internal.hs @@ -19,10 +19,10 @@ import Data.Time.HTTP.Common -- |Parse an ANSI C's @asctime()@ string. asctime ∷ Parser LocalTime asctime = do weekDay ← shortWeekDayNameP - _ ← string ", " + _ ← char ' ' month ← shortMonthNameP _ ← char ' ' - day ← read2 + day ← read2' _ ← char ' ' hour ← read2 _ ← char ':' @@ -46,10 +46,10 @@ toAsciiBuilder localTime timeOfDay = localTimeOfDay localTime in shortWeekDayName week - ⊕ A.toAsciiBuilder "⊕ " + ⊕ A.toAsciiBuilder " " ⊕ shortMonthName month ⊕ A.toAsciiBuilder " " - ⊕ show2 day + ⊕ show2' day ⊕ A.toAsciiBuilder " " ⊕ show2 (todHour timeOfDay) ⊕ A.toAsciiBuilder ":"