Conversation

i would simply write functions to do this. maybe put them in a module & import that elsewhere in my project. this is a very advanced move in programming though, i just expected that the giga brains at iohk would have heard of it.
2
2
ah, it looks like they hired enthusiastic haskell programmers and just let them do what they wanted. Classic mistake. That API looks horribly complicated.
1
5
to be fair I think part of the problem is that software architecture in Haskell isn’t like… idk, we don’t have really great guidelines I guess so people end up getting frustrated with one solution they’ve tried & read some blog posts & try something else
2
2
Agreed. I also think Haskell has some serious ergonomic problems for software at significant scale, and most of it isn't serious semantic problems in language design but syntactic stuff like overhead when using monads vs pure code, namespacing, records etc.
2
3
Rust's module system is not much more complex than Haskells, but it allows nested modules and defines a special module for each type, containing its constructors and utility functions. That is enough to solve the problems in that area I think. No need for ML modules even.
1
3
i’d also _love_ to have just a bit more flexibility with namespacing. iirc rust let’s me import stuff within the namespace of a single function call which makes it possible to use unqualified imports and not end up completely confused in large modules
2
4
I love in Rust how the convention is to import stuff in a fine-grained way, as opposed dumping the entire contents of a module into the current scope… I struggle with this so much in languages like OCaml and Haskell.
2
1
Show replies