Commit graph

5 commits

Author SHA1 Message Date
Gabriel Gonzalez
119179ad2e Fixed numeric instances for Pattern and Shell
I removed the `Rational` and `Fractional` instances and changed the `Num`
instances

The `Num` instances did not obey the semiring laws, which was the primary
instigator for this change.  However, there is also one very practical reason
for this change, too, which is that the weaker `Monoid` constraint plays
very nicely with `Text` (which is a `Monoid`, but not a `Num`).

This means that now you can do cool things like this for `Shell`:

>>> let x = "1" <|> "2"
>>> let y = "3" <|> "y"
>>> view (x * ", " * y)
"1, 3"
"1, 4"
"2, 3"
"2, 4"

Also, you can now use algebraic operations for `Pattern`s when matching `Text`,
for the same reason.
2015-04-04 17:03:30 -07:00
Gabriel Gonzalez
ac0cd1d853 Fixed tutorial link to point to latest version 2015-03-11 18:58:41 -07:00
Gabriel Gonzalez
5e2089ad30 Version 1.0.1 => 1.0.2 2015-02-25 18:26:01 -08:00
Gabriel Gonzalez
24c140d7db Version 1.0.0 => 1.0.1 2015-02-02 07:27:05 -08:00
Gabriel Gonzalez
d97b598999 Added README.md 2015-01-28 19:18:02 -08:00