@@ -28,7 +28,7 @@ import Database.PostgreSQL.Simple.Compat ((<>))
2828import Data.Monoid(Monoid(..))
2929import Data.Fixed (Pico)
3030import Unsafe.Coerce
31−import qualified Database.PostgreSQL.Simple.Time.Parser as TP
31+import qualified Database.PostgreSQL.Simple.Time.Internal.Parser as TP
3232import Database.PostgreSQL.Simple.Compat (fromPico)
3333
3434data Unbounded a
@@ -130,6 +130,7 @@ getUTCTime = TP.utcTime
130130getUTCTimestamp :: A.Parser UTCTimestamp
131131getUTCTimestamp = getUnbounded getUTCTime
132132
133+{--
133134toNum :: Num n => B.ByteString -> n
134135toNum = toNum_ 0
135136{-# INLINE toNum #-}
@@ -149,6 +150,7 @@ digits msg = do
149150 then return $! (10 * digit (c2w x) + digit (c2w y))
150151 else fail (msg <> " is not 2 digits")
151152{-# INLINE digits #-}
153+--}
152154
153155dayToBuilder :: Day -> Builder
154156dayToBuilder (toGregorian -> (y,m,d)) = do
@@ -205,8 +207,8 @@ nominalDiffTimeToBuilder xyz
205207 | otherwise = sign <> integerDec x <> char8 '.' <> showD6 y
206208 where
207209 sign = if xyz >= 0 then mempty else char8 '-'
208− -- A kludge to work around the fact that Data.Fixed isn't very fast and
209− -- NominalDiffTime doesn't give the MkNominalDiffTime constructor.
210+ -- A kludge to work around the fact that Data.Fixed isn't very fast and
211+ -- NominalDiffTime doesn't give the MkNominalDiffTime constructor.
210212 (x,yz) = ((unsafeCoerce (abs xyz) :: Integer) + 500000) `quotRem` 1000000000000
211213 (fromIntegral -> y, _z) = yz `quotRem` 1000000
212214