conal / lambda-ccc

Convert lambda expressions to CCC combinators
Other
146 stars 18 forks source link

Avoid unboxed types #6

Closed conal closed 10 years ago

conal commented 10 years ago

Do something sensible with unboxed types, even if just avoiding them. For instance, an Int literal 1 gets reified as appP (reifyEP I#) (reifyEP 1). With types shown, this sub-expression (reifyEP 1) becomes (reifyEP @ Int# 1) which is not well-kinded. (Similarly for the other reifyEP call.) I think an easy fix would be having reifyOf in Lambda.Reify only apply if the argument type has kind *.