Archive for

July 2009

C2HS example: To save other people frustration.

http://vis.renci.org/jeff/2009/07/10/c2hs-example-to-save-other-people-frustr...

Nice hands-on example of using c2hs - and I apologise for the poor documentation of the tool.

Filed under  //  c2hs   haskell  
Posted

Converting typed term representations: from HOAS to de Bruijn.

http://www.cse.unsw.edu.au/~chak/haskell/term-conv/

Given a GADT representation of a typed higher-order term language using higher-order abstract syntax (HOAS), it is more difficult to convert to an alternative GADT representation using de Bruijn indices for bound variables than I at first expected.  Here is a solution using explicit type representations (with Data.Typeable).

Filed under  //  edsl   haskell  
Posted