Closed michaelto20 closed 7 years ago
Looks like you have some debugging to do. :-)
All kidding aside, you should try and see if you can find the problem.
Lastly, that parses just fine on my computer:
*Parser> parseTest expr "\\(m:?).\\(f:? -> Nat).box<Nat> (f m)"
Fun U (bind m(Fun (Arr U Nat) (bind f(Box Nat))))
*Parser>
Oh definitely. That'll be for tomorrow, the wife is telling me to come to bed!
On Mon, Dec 26, 2016 at 9:52 PM, Harley D. Eades III < notifications@github.com> wrote:
All kidding aside, you should try and see if you can find the problem.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/heades/gradual-typing/issues/31#issuecomment-269261612, or mute the thread https://github.com/notifications/unsubscribe-auth/AEqTwAe9gFRqsiKitnkdwDhvujDiHdDPks5rMH1xgaJpZM4LV_c8 .
Are you running that on the master branch or loadfile branch?
On Mon, Dec 26, 2016 at 9:54 PM, Harley D. Eades III < notifications@github.com> wrote:
Lastly, that parses just fine on my computer:
Parser> parseTest expr "\(m:?).\(f:? -> Nat).box
(f m)" Fun U (bind m(Fun (Arr U Nat) (bind f(Box Nat)))) Parser>— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/heades/gradual-typing/issues/31#issuecomment-269261785, or mute the thread https://github.com/notifications/unsubscribe-auth/AEqTwCiS8GYFGRzfWHJzNRYdOXY7XSxwks5rMH3pgaJpZM4LV_c8 .
The loadfile branch. But, I am running the parser directly, but when I try it from the repl I get an error.
So there is a problem with the repl.
Go to bed, and try to see what you can find out later.
Thanks for fixing this!
Currently, this won't typecheck anymore:
\(m:?).\(f:? -> Nat).box<Nat> (f m)
It should typecheck to:
? -> Nat -> (? -> Nat) -> ?
It fails to parse in anything after
box<T>
orunbox<T>
.