Popularity
2.7
Declining
Activity
0.0
Stable
3
2
0

Monthly Downloads: 10
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Control     Monads     Effects    
Latest version: v0.1

effects-parser alternatives and similar packages

Based on the "effects" category.
Alternatively, view effects-parser alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of effects-parser or a related project?

Add another 'effects' Package

README

Control.Effects.Parser

Control.Effects.Parser is a parsing effect for the Control.Effects library.

Control.Effects is a Haskell library for programming with effects, like in the the Eff language by Andrej Bauer and Matija Pretnar. Effects can be used instead of monad transformers, they are designed to be easier to use and to define.

Installation

cabal install effects-parser

Using the Parser effect

Here's an example how to parse a list of words using Control.Effects.Parser.

import Control.Effects
import Control.Effects.Parser
import Data.Char

testParser1 :: Maybe [String]
testParser1 = run $
   with (parse "a list of words  ") $ \p ->
     parseMany p $ do
       noBacktrack p $ parseMany  p $ itemIf p isSpace
       noBacktrack p $ parseMany1 p $ itemIf p (not . isSpace)

For more examples see examples.hs.