@@ -69,6 +69,7 @@ module Streamly.Internal.Data.Parser
70 -- * Element parsers
70 -- * Element parsers
@@ -392,6 +393,16 @@ eof = D.toParserK D.eof
392satisfy :: MonadCatch m => (a -> Bool) -> Parser m a a
393satisfy :: MonadCatch m => (a -> Bool) -> Parser m a a
393satisfy = D.toParserK . D.satisfy
394satisfy = D.toParserK . D.satisfy
396+-- | Consume one element from the head of the stream. Fails if it encounters
399+-- >>> one = satisfy $ const True
403+one :: MonadCatch m => Parser m a a
404+one = satisfy $ const True
395-- | Return the next element of the input. Returns 'Nothing'
406-- | Return the next element of the input. Returns 'Nothing'
396-- on end of input. Also known as 'head'.
407-- on end of input. Also known as 'head'.