Adam Sampson
aeb2ebd9f4
Fix Haddock.
2008-04-01 13:22:30 +00:00
Adam Sampson
b1416bb0cf
Change A.Dimension to take an Expression, not an Int.
...
This touches an awful lot of code, but cgtest07/17 (arrays and retyping) pass.
This is useful because there are going to be places in the future where we'll
want to represent dimensions that are known at runtime but not at compile time
-- for example, mobile allocations, or dynamically-sized arrays. It simplifies
the code in a number of places.
However, we do now need to be careful that expressions containing variables do
not leak into the State, since they won't be affected by later passes.
Two caveats (marked as FIXMEs in the source):
- Retypes checking in the occam parser is disabled, since the plan is to move
it out to a pass anyway.
- There's some (now very obvious) duplication, particularly in the backend, of
bits of code that construct expressions for the total size of an array
(either in bytes or elements); this should be moved to a couple of helper
functions that everything can use.
2008-03-18 16:45:38 +00:00
Neil Brown
534fbd8db1
Added a new helper function to Utils, and corrected a comment too
2008-02-09 14:50:56 +00:00
Neil Brown
4299951511
Moved the makeSize function from ArrayUsageCheck into Utils
2008-02-06 23:49:17 +00:00
Neil Brown
86b8185b1f
Added a few more helper functions to the Utils module
2008-01-25 16:12:20 +00:00
Neil Brown
fde2d8dc17
Changed the assertEquivalentProblems so that the sizes are displayed alongside the zipped lists
2008-01-16 16:25:57 +00:00
Neil Brown
d3fca1d610
Moved showMaybe to the Utils module and added a similar showListCustom function
2008-01-15 18:08:56 +00:00
Neil Brown
8cfa9e3cb0
Added a new helper function to Utils (transformTriple)
2008-01-15 17:05:45 +00:00
Neil Brown
8f1d1368af
Stopped makeEquations unnecessarily producing duplicate equations
2007-12-17 02:22:09 +00:00
Neil Brown
91bfa4ae54
Added more helper functions to the Utils module, for dealing with arrays and maps
2007-12-17 02:08:37 +00:00
Neil Brown
8d89a88735
Added a couple more functions to the Utils module
2007-12-13 23:51:11 +00:00
Neil Brown
b39fa8053b
Added two more monadic helper functions to the Utils module
2007-12-12 13:50:55 +00:00
Neil Brown
a196b53e9e
Added more helper functions (mostly Array-related) to the Utils module
2007-12-11 16:49:50 +00:00
Douglas Warren
1d83167c01
Fixed some haddock parsing problems in the documentation
2007-11-14 16:26:47 +00:00
Douglas Warren
d82a80639d
Removed the dependency on Control.Monad.State.Class package, since that isn't in the older Debian versions
2007-11-14 16:24:03 +00:00
Neil Brown
83ab0c16f5
Added a couple more helper functions/operators to the Utils module
2007-11-09 19:45:03 +00:00
Neil Brown
a46c7a6fe3
Added more functions to the Utils function, for uncurrying functions and forming cartesian products
2007-11-09 17:26:55 +00:00
Neil Brown
572b53c3b6
Added another helper function to Utils; a version of modify that returns the old state
2007-11-09 17:13:58 +00:00
Neil Brown
af1574643d
Added two more helper functions to the Utils module
2007-11-09 11:19:09 +00:00
Neil Brown
47f5e36f9c
Added another helper function, seqPair, to the Utils module
2007-11-09 01:23:46 +00:00
Neil Brown
bacc3115e9
Added various general helper functions to the Utils module
2007-11-09 01:18:42 +00:00
Neil Brown
4bb2b2a407
Moved mapPair into Utils, and renamed it to transformPair (to be consistent with the pre-existing transformX functions)
2007-11-02 16:44:02 +00:00
Neil Brown
d2e54ea483
Added another helper function to the Utils module
2007-10-28 01:22:55 +00:00
Neil Brown
9fd67023b7
Added some new general helper functions to the Utils module.
2007-10-27 21:15:04 +00:00
Neil Brown
a454aa78f8
Rain: implemented the checkExpression function and got it passing the tests so far
2007-09-15 18:57:02 +00:00
Neil Brown
2ff46a9041
Rearranged the Rain source files, renamed a couple of Rain files, and changed the Makefile accordingly.
2007-09-10 17:28:57 +00:00