The parsec-permutation package

[Tags:bsd3, library]

[Skip to Readme]

Properties

Versions 0.1.0.0, 0.1.1.0, 0.1.2.0
Dependencies base (==4.*), parsec (>=3) [details]
License BSD3
Copyright Bitbase, LLC
Author Samuel Hoffstaetter
Maintainer samuel@hoffstaetter.com
Stability Unknown
Category Parsing
Source repository head: git clone https://github.com/bitbasenyc/parsec-permutation.git
Uploaded Fri Mar 8 00:21:59 UTC 2013 by SamuelHoffstaetter
Distributions NixOS:0.1.2.0
Downloads 1033 total (9 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for parsec-permutation

Readme for parsec-permutation-0.1.2.0

Text.Parsec.Permutation is a permutation parser for parsec intended as
a generalized replacement for Text.Parsec.Perm in parsec.

Example usage:

  > import Text.Parsec.Permutation
  >
  > fooParser :: ParsecT s u m a -> ParsecT s u m [a]
  > fooParser = runPermParser $
  >                 (,,) <$> oncePerm (char 'A')
  >                      <*> manyPerm (char 'B')
  >                      <*> optionMaybePerm (char 'C' >> char 'D')

This parser will return ('A', "BBB", Just 'D') when parsing for example
the strings "BCDABB", "CDBBAB", etc.