Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mie6 committed May 22, 2021
1 parent 6157061 commit f4473fc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ for instance.
To use it, you'll need to write you parsers in another file from where they will be used: this is
due to Template Haskell.

<!--### Examples
TODO-->

### How does Parsley being a _Staged Selective_ library change its use?
By being a _Selective_ Parser Combinator library, Parsley does not support monadic operations such
as `(>>=)` or `return`. Instead, the most powerful operations are `select` or `branch`. Most monadic
Expand All @@ -41,13 +37,13 @@ if `RebindableSyntax` is used.
Code is provided to the combinators by way of the datatype `WQ` (or `Defunc` if you're feeling fancy),
which pairs a normal value with its Haskell code representation:

```haskell
```hs
data WQ a = WQ a (Code a)
```

This gives us combinators like:

```haskell
```hs
pure :: WQ a -> Parser a
satisfy :: WQ a -> Parser a

Expand Down

0 comments on commit f4473fc

Please sign in to comment.