Commit Graph

20 Commits

Author SHA1 Message Date
Neil Brown
f2c4ada01b Removed PolyplateSpine in favour of using PolyplateM (and the State monad) everywhere 2009-04-13 20:37:14 +00:00
Neil Brown
85ed6b8fbe Discovered that I'd googled to some outdated docs, and fixed the last comment change 2009-02-11 16:50:47 +00:00
Neil Brown
399433a18a Added a note to the comments in GenInstances 2009-02-11 16:45:10 +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
3b7d530e90 Fixed more of the documentation for the Polyplate module 2009-01-12 18:49:52 +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
cdcbebd2ae Fixed the instances generated for Maps 2008-12-14 15:38:01 +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
d24a984442 Fiddled with the PolyplateSpine class and added code to generate the instances 2008-12-09 16:18:06 +00:00
Neil Brown
c83c383181 Fixed the GenClassPerType option to actually generate the forwarding instance from PolyplateM to the type-specific class 2008-12-03 17:36:40 +00:00
Neil Brown
360b076be9 Made genMapInstance and genSetInstance generate instances for the directly contained types 2008-12-03 17:30:57 +00:00
Neil Brown
29b79000f1 Made the instance generation obey the settings for GenClassOption 2008-12-03 17:19:16 +00:00
Neil Brown
24364c0cbe Pulled out the final bits of the instance generation that I want to make configurable 2008-12-03 17:07:43 +00:00
Neil Brown
7ee2475363 Pulled out more commonality, this time relating to contexts 2008-12-03 16:55:48 +00:00
Neil Brown
14d6dec1d1 Pulled out some of the details of generating a Polyplate instance into a helper function, to help make it easier to configure 2008-12-03 16:41:01 +00:00
Neil Brown
624e10b9ff Added a special case for sets, and some documentation explaining why this mechanism is needed 2008-12-03 15:42:52 +00:00
Neil Brown
85f917df2f Added a mechanism for having special cases for awkward types (such as Map) during the instance generation 2008-12-03 15:32:43 +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
69e5d1d20d Reworked GenInstances, and wired in the option relating to overlapping instances 2008-12-02 15:50:38 +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