5 ms·
Another way to solve this problem, is to allow multiple (nested) modules per file. A bit like OCaml. Then standard Haskell-syntax can already handle everythin
by eru 12y ago
Another way to solve this problem, is to allow multiple (nested) modules per file. A bit like OCaml. Then standard Haskell-syntax can already handle everything we need.
- tel 12y agoThis would work but run a bit afoul of global instance canonicity.
- evincarofautumn 12y agoHow so? I think they mean as a syntactic feature, not having parameterised modules.
- tel 12y agoWhat happens if you define an instance inside of a nested module? When does it become available?
- dllthomas 12y agoI'd like to just see a per-project uniqueness check on used instances.
- eru 12y agoYes, just a syntactic feature, as transparent sugar standing in for an extra file. (Though I haven't thought the whole thing through more than that.)