Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make a ghc-style preprocessor script #4

Open
alistra opened this issue Dec 25, 2011 · 0 comments
Open

make a ghc-style preprocessor script #4

alistra opened this issue Dec 25, 2011 · 0 comments

Comments

@alistra
Copy link

alistra commented Dec 25, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant