Closed david-christiansen closed 9 years ago
Also fails on: :let instance Functor id where { map f x = f x }
My initial implementation of :let
was kind of incomplete; I foolishly assumed that no one would want to define a class, instance, or infix declaration at the repl, among other things.
I'm trying to make it work for every kind of declaration, even the ones that don't seem worthwhile to me, but it's proving more difficult than I anticipated. As a first step, I should at least be able to catch those errors and print a message in the REPL instead of falling all the way back to haskell.
This is fixed now!