core-to-isabelle icon indicating copy to clipboard operation
core-to-isabelle copied to clipboard

Add special syntax for lists on the Halicore side

Open dagit opened this issue 13 years ago • 1 comments

dagit avatar Jun 27 '11 20:06 dagit

e342a0037ae221121457 adds a definition for the list datatype, and also defines type-level syntax "[]" => "List" and "[a]" => "List a".

halicore_data List a = Nil | Cons "a" "List a"

However, I haven't implemented expression-level syntax for Nil and Cons yet, because I'm not sure what to do with the type arguments, which are implicit in Haskell but explicit in Core.

brianhuffman avatar Jun 29 '11 16:06 brianhuffman