2 ms·
The Glasgow Haskell Compiler has a language pragma for running CPP before compilation. I've seen it used a few times, for #ifdef compatibility between Windows a
by nemetroid 13y ago
The Glasgow Haskell Compiler has a language pragma for running CPP before compilation. I've seen it used a few times, for #ifdef compatibility between Windows and Linux for low-level stuff. I don't think anyone would ever want to use #include or macros, so the issue of speed is not very interesting in that context.
example: http://hackage.haskell.org/package/system-filepath-0.4.10/docs/src/Filesystem-Path-CurrentOS.html http://hackage.haskell.org/package/system-filepath-0.4.10/do...