import qualified Data.Ascii as A
import Data.Attoparsec.Char8
import Data.Convertible.Base
+import Data.Proxy
import Data.Tagged
import Data.Time
import Data.Time.Format.Asctime
]
toAsciiBuilder ∷ UTCTime → AsciiBuilder
-toAsciiBuilder = untag' ∘ cs ∘ ut2zt
+{-# INLINE toAsciiBuilder #-}
+toAsciiBuilder = flip proxy rfc1123 ∘ cs ∘ ut2zt
where
- untag' ∷ Tagged RFC1123 AsciiBuilder → AsciiBuilder
- {-# INLINE CONLIKE untag' #-}
- untag' = untag
+ rfc1123 ∷ Proxy RFC1123
+ {-# INLINE CONLIKE rfc1123 #-}
+ rfc1123 = Proxy
ut2zt ∷ UTCTime → ZonedTime
{-# INLINE ut2zt #-}
-- |This module provides functions to parse and format RFC 1123 date
-- and time strings (<http://tools.ietf.org/html/rfc1123#page-55>).
--
--- The format is basically same as RFC 822, but the syntax for @date@
--- is changed from:
+-- The format is basically the same as RFC 822, but the syntax for
+-- @date@ is changed from:
--
-- > year ::= 2DIGIT
--
component: time-http
release: time-http-0.3
reporter: PHO <pho@cielonegro.org>
-status: :in_progress
-disposition:
+status: :closed
+disposition: :fixed
creation_time: 2011-12-01 01:58:17.790699 Z
references: []
- PHO <pho@cielonegro.org>
- changed status from unstarted to in_progress
- ""
+- - 2011-12-14 13:57:46.566967 Z
+ - PHO <pho@cielonegro.org>
+ - closed with disposition fixed
+ - Done.
git_branch: