Implementation of the Gradualizer (described in The gradualizer: a methodology and algorithm for generating gradual type systems, M. Cimini and J. G. Siek)
- Modify code to take into account covariance and contravariance of types
$ cd gradualizer/src/
$ ghci
Prelude> :l Gradualizer.hs
*Gradualizer> ts <- generateGradual "stlc"
*Gradualizer> GTS.printSystem ts
*Gradualizer> ts <- generateCompiler "stlc"
*Gradualizer> CC.printSystem ts