The parsec-permutation package

[Tags: bsd3, library]

[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.1.1.0, 0.1.2.0
Change logNone available
Dependenciesbase (==4.*), parsec (>=3) [details]
LicenseBSD3
CopyrightBitbase, LLC
AuthorSamuel Hoffstaetter
Maintainersamuel@hoffstaetter.com
CategoryParsing
Source repositoryhead: git clone https://github.com/bitbasenyc/parsec-permutation.git
UploadedFri Mar 8 00:21:59 UTC 2013 by SamuelHoffstaetter
DistributionsNixOS:0.1.2.0
Downloads810 total (44 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

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.