
25 Aug
2004
25 Aug
'04
2:47 p.m.
On 25 August 2004 12:28, MR K P SCHUPKE wrote:
I wish to add some extended syntax to type definitions, assuming I modify the parser files and associated datatypes to carry the extra information, is there a convenient place to insert a pre-parse (before type-checking) to convert the syntax extensions to regular haskell?
GHC's strategy is to not do any translation before typechecking, so that we can generate good error messages. Nevertheless, it's certainly possible to do what you're suggesting: just insert an HsSyn->HsSyn pass after parsing (I imagine). Various things might complicate matters, such as needing to refer to fixed entities in other modules in the translation. Cheers, Simon
7707
Age (days ago)
7707
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow