@@ -23,8 +23,6 @@ module Data.Attoparsec.ByteString.Internal
2323 , parseOnly
2424
2525 -- * Combinators
26− , (<?>)
27− , try
2826 , module Data.Attoparsec.Combinator
2927
3028 -- * Parsing individual bytes
@@ -161,15 +159,6 @@ get = T.Parser $ \i0 a0 m0 _kf ks -> ks i0 a0 m0 (unI i0)
161159put :: B.ByteString -> Parser ()
162160put s = T.Parser $ \_i0 a0 m0 _kf ks -> ks (I s) a0 m0 ()
163161
164−-- | Attempt a parse, and if it fails, rewind the input so that no
165−-- input appears to have been consumed.
166−--
167−-- This combinator is provided for compatibility with Parsec.
168−-- Attoparsec parsers always backtrack on failure.
169−try :: Parser a -> Parser a
170−try p = p
171−{-# INLINE try #-}
172−
173162-- | The parser @satisfy p@ succeeds for any byte for which the
174163-- predicate @p@ returns 'True'. Returns the byte that is actually
175164-- parsed.
@@ -481,16 +470,6 @@ atEnd = not <$> wantInput
481470endOfLine :: Parser ()
482471endOfLine = (word8 10 >> return ()) <|> (string "\r\n" >> return ())
483472
484−-- | Name the parser, in case failure occurs.
485−(<?>) :: Parser a
486− -> String -- ^ the name to use if parsing fails
487− -> Parser a
488−p <?> msg0 = T.Parser $ \i0 a0 m0 kf ks ->
489− let kf' i a m strs msg = kf i a m (msg0:strs) msg
490− in T.runParser p i0 a0 m0 kf' ks
491−{-# INLINE (<?>) #-}
492−infix 0 <?>
493−
494473-- | Terminal failure continuation.
495474failK :: Failure a
496475failK i0 _a0 _m0 stack msg = Fail (unI i0) stack msg