Closed DavePearce closed 2 years ago
Can we somehow just use LambdaAccess
for both, whereby in this case it refers to a Decl.Lambda
rather than e.g. a Decl.Function
. I think this can work, though the whole issue with the Binding
is problematic.
Fixed by #1132
There is a flaw in the way lambda "declarations" are typed. Specifically, the following example illustrates:
The problem is that the expression
&(State s -> empty())
must have typehandler
, but theDecl.Lambda
instance generated has typemethod(State)
.