forked from colah/HaskSymb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
HaskSymb: An Experiment in Haskell Symbolic Algebra | ||
=================================================== | ||
|
||
At this point, HaskSymb is just something I'm hacking on as a fun side project. It is not a serious project, and isn't useful for anything. That said, it has some cool features. | ||
|
||
The biggest one is that it provides mathematical pattern matching via quasiquoters. So one can write code like this: | ||
|
||
```haskell | ||
expand [m| a+b |] = expand a + expand b | ||
expand [m|a*(b+c)|] = expand (a*b) + expand (a*c) | ||
expand [m| a*b |] = expand a * expand b | ||
expand a = a | ||
``` | ||
|
||
(In fact, at the time of writing that is actual code in BasicAlgs) | ||
|
||
There's other cool stuff with extensibility coming up. |