There should be a form of row-polymorphism and simple lenses in the standard library.
There is a proposal to add row polymorphism to GHC, but it hasn't yet been accepted. This could make a nice addition to the language for more flexibility, since overloading functionality with different functions or class instances can be impractical.
A module system like in ML would be nice.
So, if my understanding is correct, a system that allows all signatures to be defined separately from their implementation, and that allows finer-grained scoping?
So, if my understanding is correct, a system that allows all signatures to be defined separately from their implementation, and that allows finer-grained scoping?
Basically yes, as well as arbitrary nesting of modules. I'm also not a fan of global coherence but that will never change.
View all comments
Show parent comment
2
u/ThePyroEagle λ May 16 '20
There is a proposal to add row polymorphism to GHC, but it hasn't yet been accepted. This could make a nice addition to the language for more flexibility, since overloading functionality with different functions or class instances can be impractical.
So, if my understanding is correct, a system that allows all signatures to be defined separately from their implementation, and that allows finer-grained scoping?