X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=time-http.git;a=blobdiff_plain;f=Data%2FTime%2FHTTP%2FCommon.hs;fp=Data%2FTime%2FHTTP%2FCommon.hs;h=c98338988bdaf17e7d69fb1a8b92d0a4de2e8e46;hp=c07065bf6585cb15a8aecaa6e6b597d9b3aa7607;hb=02b5cc7bb95b32a2034afac3e918ff610c05f337;hpb=782e6a9bfebeb1036921a293549395c17f0f035c diff --git a/Data/Time/HTTP/Common.hs b/Data/Time/HTTP/Common.hs index c07065b..c983389 100644 --- a/Data/Time/HTTP/Common.hs +++ b/Data/Time/HTTP/Common.hs @@ -258,6 +258,7 @@ digit' = fromIntegral <$> fromC <$> P.digit fromC c = ord c - ord '0' show4digitsTZ ∷ TimeZone → AsciiBuilder +{-# INLINEABLE show4digitsTZ #-} show4digitsTZ tz = case timeZoneMinutes tz of offset | offset < 0 → A.toAsciiBuilder "-" ⊕ showTZ' (negate offset) @@ -270,6 +271,7 @@ show4digitsTZ tz show2 h ⊕ show2 m read4digitsTZ ∷ Parser TimeZone +{-# INLINEABLE read4digitsTZ #-} read4digitsTZ = do sign ← (char '+' *> return 1) <|>