on master help sign in
Use the common setup section in ParserK
commit71487ab765abf6222a42c531fe9186e74bc23067 authorHarendra Kumar <harendra@composewell.com> dateThu 23 Nov 2023, 06:48 (3 years ago) parentd3247cf
1 file changed+1−9
core/src/Streamly/Data/ParserK.hs+1−9
core/src/Streamly/Data/ParserK.hs+1−9
@@ -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--