Re: Narrower (per-method) GND

2017-01-09 Thread David Feuer
On Mon, Jan 9, 2017 at 1:32 PM, Richard Eisenberg wrote: > I agree with David that using explicit `coerce`s can be quite verbose and > may need ScopedTypeVariables and InstanceSigs. But visible type application > should always work, because class methods always have a fixed type argument > order.

Re: Narrower (per-method) GND

2017-01-09 Thread David Feuer
On Mon, Jan 9, 2017 at 1:32 PM, Richard Eisenberg wrote: > 2. Defaulting to the implementation written in the class (or `error > "undefined method"` in the absence of a default. This is essentially the > default default.) I want to be able to specify that a certain default definition is good eno

Re: Narrower (per-method) GND

2017-01-09 Thread Richard Eisenberg
> On Jan 9, 2017, at 1:57 PM, Gershom B wrote: > > Richard — your idea is really interesting. How would the dreaded role > restriction have to be modified to detect and allow this sort of granularity? It wouldn't. The role restriction is purely on a method-by-method basis. (Right now, the rol

Re: Narrower (per-method) GND

2017-01-09 Thread Gershom B
Richard — your idea is really interesting. How would the dreaded role restriction have to be modified to detect and allow this sort of granularity? —g On January 9, 2017 at 1:34:17 PM, Richard Eisenberg (r...@cs.brynmawr.edu) wrote: > I agree with David that using explicit `coerce`s can be qui

Re: Narrower (per-method) GND

2017-01-09 Thread Richard Eisenberg
I agree with David that using explicit `coerce`s can be quite verbose and may need ScopedTypeVariables and InstanceSigs. But visible type application should always work, because class methods always have a fixed type argument order. Regardless, requiring users to do all this for GND on Monad wou