Open sparecycles opened 8 years ago
Other than the fact that the type checker is not that smart yet (😞), there are a couple hacks that I have to fix to make it more sane:
print
says it takes a printable
, but it never calls to_string
in the value. It's an old version of the function that expects the pointer to be NaN-boxed and checks the type tag.I'll try to fix these issues soon, and it should, at least, improve the error, instead of just printing garbage.
And here I thought I had discovered a horrid runtime flaw, and all I did was hit some temporary hack.
Accidentally closed it, just meant to mention it from the commit message... :(
Attempting to generalize the maybe type in the tests, I found two issues:
I think the two issues are:
print(Just("abc"))
is some undefined value (the number changes slightly between runs) interpreted as a float.