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
33import Control.Monad.IO.Class (MonadIO)
34import Streamly.Internal.Data.Fold (Fold)
35import Streamly.Internal.Data.Unboxed (Unbox)
36import qualified Streamly.Internal.Data.Parser.ParserD as ParserD
38import Streamly.Internal.Data.Parser.ParserK.Type
40-- | Convert a 'Fold' to a 'ParserK'.
42{-# INLINE fromFold #-}
43fromFold :: (MonadIO m, Unbox a) => Fold m a b -> ParserK a m b
44fromFold = fromParser . ParserD.fromFold
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