« Previous | Next » 

Revision 2af78b97

ID2af78b9766f792abd79103e819f0c8b0c0745d9b
Parent da45c352
Child 8c957eb3

Added by Iustin Pop almost 12 years ago

Expand THH with more functionality for parameters

This adds two related improvements to THH:

- for parameters, we declare a list with all their fields, so that
Query2 can build the list of fields (e.g. for hvparams, or ndparams)
automatically

- we declare a new type class for "DictObjects", i.e. objects which
can be converted to a [(String, JSValue)] list of pairs; while this
applies to all our objects, it will be used first for filled
parameters, so that we can implement the lookup functions
generically

Note that we re-export the new class from Objects.hs, so that other
modules don't have to import THH.

Signed-off-by: Iustin Pop <>
Reviewed-by: Agata Murawska <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences