3 ms·
Sorry, but, aside from the obviously unimportant use of `in` (a reserved word), this gives a different type from what I think you meant: x :: a g :: a
by JadeNB 15y ago
Sorry, but, aside from the obviously unimportant use of `in` (a reserved word), this gives a different type from what I think you meant:
x :: a
g :: a -> b -> c
in :: c -> d
th :: d -> e
thing :: a -> b -> e
and naïve eta-conversion will give you something that isn't well typed. Probably you meant
thing x = th . in . g $ x
- jerf 15y agoYes, thanks.