[Haskell-cafe] Imports at bottom, why not?

Christopher Done chrisdone at gmail.com
Wed May 14 14:55:20 UTC 2014


On 22 April 2014 19:59, Thiago Negri <evohunz at gmail.com> wrote:
> So, why not issue import statements at the bottom of a module file?

The first technical problem I see is that a compiler can't easily
generate a dependency graph without first parsing the whole module. In
contrast, current Haskell forbids anything but a module header, some
pragmas and an import list to start any module.


More information about the Haskell-Cafe mailing list