简体   繁体   中英

How to get GHC command as issued by Cabal/Stack?

GHC can be used as a linter for the Neovim plugin ale . The configuration uses the following command to lint a file:

stack ghc -- -fno-code -v0 %t

where %t is the file in question. This is fast and pretty great, however, it doesn't recognize any of the options specified in the Cabal file, and it fails to run if there are internal modules referenced in the file.

Is it possible somehow to get the GHC command that would be issued by cabal build or stack build , so that we can get the extensions/references/etc necessary to get this working?

启用冗长功能会为您提供所需的信息:

stack build --verbose --cabal-verbose

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