2014-11-20 9:36 GMT+01:00 Joachim Breitner <m...@joachim-breitner.de>:
> [...] With your extensions it will have to read the directory contents. In
> most situations, that should be fine, but it might cause minor
> inconveniences with very large directories, many search paths (-i flags)
> and/or very weird file systems (compiling from a FUSE-mounted
> HTTP-Server that does not support directory listing? Would work now...)

Hmmm, IMHO reading directory contents is not a good idea for a
compiler, for just the reasons you mentioned.

> A fixed set of extensions (e.g. just "md" and "tex") would avoid this
> problem, but goes against the spirit of the proposal.

I think we can get the best of both worlds by adding a compiler flag,
e.g. --literate-extensions=md,tex. This way the compiler still has to
probe only a finite set of filenames *and* we are still flexible.

Cheers,
   S.
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://www.haskell.org/mailman/listinfo/ghc-devs

Reply via email to