How to use alex with param -g in cabal

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use alex with param -g in cabal

Kees Bleijenberg

Hi all,

 

Alex is in the build-tools part of the cabal file. The docs of Alex says that invoking Alex with –g makes the resulting lexer significantly faster and smaller. How can I pass the –g parameter in the cabal file?

 

Kees


Virusvrij. www.avast.com

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.
Reply | Threaded
Open this post in threaded view
|

Re: How to use alex with param -g in cabal

Vanessa McHale

I think cabal passes -g by default. But if not you can something like: https://github.com/vmchale/atspkg/blob/master/cabal.project#L30

Cheers,
Vanessa McHale

On 3/14/19 5:18 AM, Kees Bleijenberg wrote:

Hi all,

 

Alex is in the build-tools part of the cabal file. The docs of Alex says that invoking Alex with –g makes the resulting lexer significantly faster and smaller. How can I pass the –g parameter in the cabal file?

 

Kees


Virusvrij. www.avast.com

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.

signature.asc (499 bytes) Download Attachment