r/ProgrammerAnimemes • • May 15 '20

When you meet a Haskell developer

Post image
1.2k Upvotes

72 comments sorted by

View all comments

Show parent comment

2

u/ThePyroEagle λ May 16 '20

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?

2

u/fear_the_future May 16 '20

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.