simonmar/alex — Issue #4: make a ghc-style preprocessor script
Author: alistra
Created: 2011-12-25 00:18:27+00:00
State: open

According to this:
http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html

You can ship a script:

#!/bin/sh
alex "$2" -o="$3"

And then people can use a file with a pragma:
```{-# OPTIONS_GHC -pgmF alex-ghc -F #-}```
without having fun with indirect .x files and resulting .hs files

drift already uses it, and derive possibly will:
https://code.google.com/p/ndmitchell/issues/detail?id=513&colspec=ID%20Status%20Proj%20Summary%20Priority%20Stars