@@ -1,3 +1,4 @@
1+{-# LANGUAGE CPP #-}
12-- |
23-- Module : Streamly.Data.ParserK
34-- Copyright : (c) 2023 Composewell Technologies
@@ -45,15 +46,6 @@
4546-- Monad composition can be used for lookbehind parsers, we can dynamically
4647-- compose new parsers based on the results of the previously parsed values.
4748--
48−-- >>> :m
49−-- >>> import Control.Applicative ((<|>))
50−-- >>> import Data.Char (isDigit, isAlpha)
51−-- >>> import Streamly.Data.Parser (Parser)
52−-- >>> import Streamly.Data.ParserK (ParserK)
53−-- >>> import qualified Streamly.Data.Parser as Parser
54−-- >>> import qualified Streamly.Data.ParserK as ParserK
55−-- >>> import qualified Streamly.Internal.Data.ParserK as ParserK (adapt)
56−--
5749-- If we have to parse "a9" or "9a" but not "99" or "aa" we can use the
5850-- following non-monadic, backtracking parser:
5951--