Open jazullo opened 1 year ago
I believe fixing this issue should allow the tree printer in the below code to work. This file currently produces a L2 typechecking variable for a dropped variable, which is both lower down and a different error, but I think they are related? https://gist.github.com/jazullo/7ac6c4db284b6498b18da3f4957d0c68
@jazullo this error is there because you haven't included the date type definitions. Hence the compiler doesn't know what RBT, B, I is.
import Gibbon.Prelude
import Gibbon.Maybe
import Gibbon.PList
data B = B Bool
data I = I Int
data RBT
= Empty
| Node B I RBT RBT
print_empty :: () -> PList (Maybe RBT)
print_empty z =
let _ = printsym (quote ".")
xx :: Maybe RBT
xx = Nothing
in Cons xx (Nil)
x :: PList (Maybe RBT)
x = print_empty ()
Produces error
on
master