Neil Brown
391890faa7
Moved TreeUtil.Pattern to its own module (Pattern), which allowed me to show the pshowPattern function to be part of the PrettyShow.pshow function
2007-08-20 21:01:06 +00:00
Neil Brown
6d0cf6464a
Added a fix for the Eq instance of toConstr being too weak, by adding a new helper function to TreeUtil
2007-08-19 09:20:35 +00:00
Adam Sampson
c8d5a4ff40
Add licensing information.
...
The compiler itself is under the GPLv2+; the support code that gets built into
user programs is under the LGPLv2+. This matches the existing practice for the
KRoC project.
(As with Occade, I've used the new GPLv3-style license header in the source
files, though, since that avoids having to update the FSF's postal address.)
2007-08-18 20:42:11 +00:00
Neil Brown
8ab4299553
Refactored TreeUtil to provide Show and Eq instances for AnyDataItem, which allowed other functions to be simplified/removed
2007-08-18 14:46:57 +00:00
Neil Brown
fe5141d310
Changed the Either order in TreeUtil of getMatchedItems to match Haskell convention
2007-08-18 11:09:37 +00:00
Neil Brown
7e255f2218
Cleared up the error messages in assertPatternMatch in TreeUtil
2007-08-18 10:20:11 +00:00
Neil Brown
1cc005f829
Added checks for consistent patterns in checkMatch in TreeUtil
2007-08-18 10:09:09 +00:00
Neil Brown
e397e95364
Simplified the checkConsEq function a little in TreeUtil
2007-08-18 10:05:09 +00:00
Adam Sampson
5628f93db6
Fix some Haddock syntax (comments that shouldn't have been Haddock)
2007-08-17 18:21:29 +00:00
Neil Brown
e6d4425e82
Improved the printing of Patterns so that more helpful and readable output is produced when a test fails
2007-08-16 14:11:58 +00:00
Neil Brown
be340024ce
Added some pattern matching utilities (mainly intended for matching the AST)
2007-08-16 12:18:48 +00:00