简体   繁体   中英

haskell-stack command with GHC option

I'm using stack command to compile a Haskell code. I'd like to compile with GHC options like -O2 . I would like you tell how do I do this.

The following command is not OK. I'd like to do like the below code.

stack ghc -O2 hello.hs

All of GHC specific options should be placed after --

ex.

stack ghc -- -O2 hello.hs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM