Neil Brown
e61a23855a
Fixed all the conflicts while merging into the Polyplate branch
2009-04-09 11:01:39 +00:00
Neil Brown
a72b01ff02
Merged the latest changes from my usage checking into the polyplate branch
2009-02-10 17:11:24 +00:00
Neil Brown
83eed621dc
Added more documentation to Polyplate and made sure to trim the trees for PolyplateSpine
2009-01-13 15:37:35 +00:00
Neil Brown
8ea930541f
Added routes to Polyplate, making the main class PolyplateMRoute and thus PolyplateM is a derivative of this with the old functionality
...
Also changed the generation of the instances to generate PolyplateMRoute instances instead of PolyplateM
2008-12-14 22:47:24 +00:00
Neil Brown
263dfd6fd3
Allowed the different instances for the Polyplate classes to be written out to separate files (to help GHC's memory usage down a bit)
2008-12-14 15:37:05 +00:00
Neil Brown
24a7b7aba8
Changed GenNavAST to also generate instances for CompState
2008-12-03 17:37:29 +00:00
Neil Brown
4fa324cbfe
Changed polyplate so that users should always supply their own headers (since it must have any appropriate imports)
2008-12-02 16:04:04 +00:00
Neil Brown
c9100fb467
Added the first version of GenInstances (taken from my latest improvements) and switched GenNavAST to use it, but it needs tidying up and to take account of the options it is given
2008-12-02 15:16:22 +00:00
Neil Brown
6814ac2679
Added a joinWith helper (short for concat . intersperse) and changed most of the uses in the code to use the helper function
2009-04-08 16:28:23 +00:00
Adam Sampson
7a7e3e2b24
Make GenNavAST generate instances of a "Polyplate" class.
...
This provides transformM, which we can build applyX (etc.) on top of:
it takes a set of functions, and applies them wherever they could
match in a data structure, without automatically recursing. This is
done using a four(!)-argument typeclass, drawing inspiration from
Biplate.
The resulting 25,000-line set of instances takes a little while to
compile...
2008-05-10 16:27:46 +00:00
Adam Sampson
058a3488d9
Generate instances of a Navigable class.
...
This isn't immediately useful, but I plan to build on it.
2008-05-09 15:46:18 +00:00