]> gitweb @ CieloNegro.org - time-http.git/blobdiff - Data/Time/HTTP/Common.hs
docs
[time-http.git] / Data / Time / HTTP / Common.hs
index 84beeb3665cd9439f66f85bb5bae18197dfbe187..c07065bf6585cb15a8aecaa6e6b597d9b3aa7607 100644 (file)
@@ -358,10 +358,4 @@ parseAttempt f p bs
 
 parseAttempt' ∷ Parser α → Ascii → Attempt α
 {-# INLINE parseAttempt' #-}
-parseAttempt' p a = parseAttempt h p bs
-    where
-      h ∷ String → StringException
-      h _ = StringException $ A.toString a
-
-      bs ∷ ByteString
-      bs = A.toByteString a
+parseAttempt' = (∘ A.toByteString) ∘ parseAttempt StringException