sweirich / trellys

Automatically exported from code.google.com/p/trellys
45 stars 6 forks source link

Refactor TypeCheck.hs to eleborate instead of just typecheck #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(As discussed with Stephanie:)

We would like to experiment with various features for the surface language 
without having to reimplement the entire type system twice (once for the core 
and one for the sugared version). The route of least effort seems to be to 
refactor the typechecker so that instead of just checking the program, it 
produces a Core Trellys program as output.

There will be one option which causes it to signal an error if given a program 
which is not in Core Trellys already -- in this mode it simply serves as a 
typechecker for Core Trellys. But when that option is off, it could take 
programs using additional features, and elaborate them into Core programs.

Original issue reported on code.google.com by vilhelm....@gmail.com on 2 Jan 2011 at 10:31

GoogleCodeExporter commented 9 years ago
Done by revision 74.

Original comment by vilhelm....@gmail.com on 20 Jan 2011 at 1:10