News for hackers. Stuff that matters.
Re:GHC 8.0.1 is available by eru on Sunday May 22, 2016 @07:06AM (#11748107)
If only Haskell would be more like OCaml in this regard, and would allow you to eg nest module, instead of saying "One File = One Module".
Re:GHC 8.0.1 is available by lelf on Sunday May 22, 2016 @08:37AM (#11748368)
It goes in that direction with https://ghc.haskell.org/trac/ghc/wiki/Backpack
Re:GHC 8.0.1 is available by p4wnc6 on Sunday May 22, 2016 @11:06AM (#11748841)
I've never encountered a situation in which the One File - One Module imposed convention was problematic. I also find it greatly helps when reading new Haskell code bases. I think it's generally a sign of good project design when there are lots and lots of small files, each with one data structure and a few associated functions.
Re:GHC 8.0.1 is available by eru on Sunday May 22, 2016 @07:10PM (#11750688)
For most of what I want, being able to introduce additional namespaces would be good enough. Making them modules as well could open the doors to some need techniques.

(I don't need multiple namespaces per file so much for the finished program, but it's handy when developing.)