The parsec-permutation package

[Tags:bsd3, library, test]

[Skip to Readme]


Dependencies base (==4.*), parsec (>=3) [details]
License BSD3
Copyright Bitbase, LLC
Author Samuel Hoffstaetter
Stability Unknown
Category Parsing
Source repository head: git clone
Uploaded Wed Feb 27 23:36:52 UTC 2013 by SamuelHoffstaetter
Distributions NixOS:
Downloads 1046 total (6 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for parsec-permutation

Readme for parsec-permutation-

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.