Popularity
1.0
Declining
Activity
0.4
Growing
2
1
0

Monthly Downloads: 1
Programming language: Haskell
License: MIT License
Tags: Text    
Latest version: v0.1.0.0

spars alternatives and similar packages

Based on the "Text" category.
Alternatively, view spars alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of spars or a related project?

Add another 'Text' Package

README

spars

Spars is a lightweight parsing package that uses sets to store parse results to avoid duplicates.

The name is a contraction of set parse and a pun on the word sparse.

Motivation

I made this library because I wanted to parse command line arguments and felt like not using parsec.

Infos

Spars explicitly does not implement instances of Monad, Applicative and other classes. This is because using sets requires that all functions need the result type of the parser to be orderable.

Because there are no typeclass instances, the Parser type is not a newtype construction, but just a type synonym.

Note: This means that you cannot use do-notation with Spars.

Dependencies

Spars has a dependency on containers in order to use maps and sets from that package.

Acknowledgements

Some of the functions in this package have been written with the help of friendly strangers online.