2-- Module : Streamly.Data.ParserK
3-- Copyright : (c) 2023 Composewell Technologies
4-- License : BSD-3-Clause
5-- Maintainer : streamly@composewell.com
6-- Stability : pre-release
9-- Parsers using Continuation Passing Style (CPS). See notes in
10-- "Streamly.Data.Parser" module to know when to use this module.
12-- To run a 'ParserK' use 'Streamly.Data.StreamK.parseChunks'.
14module Streamly.Data.ParserK
36import Control.Monad.IO.Class (MonadIO)
37import Streamly.Internal.Data.Fold (Fold)
38import Streamly.Internal.Data.Unbox (Unbox)
39import Streamly.Internal.Data.Array (Array)
40import qualified Streamly.Internal.Data.Parser as ParserD
42import Streamly.Internal.Data.ParserK.Type
44{-# DEPRECATED fromFold "Please use \"ParserK.adaptC . Parser.fromFold\" instead." #-}
45{-# INLINE fromFold #-}
46fromFold :: (MonadIO m, Unbox a) => Fold m a b -> ParserK (Array a) m b
47fromFold = adaptC . ParserD.fromFold
49{-# DEPRECATED fromParser "Please use \"adaptC\" instead." #-}
50{-# INLINE fromParser #-}
52 (MonadIO m, Unbox a) => ParserD.Parser a m b -> ParserK (Array a) m b
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list