haskellemacsintero

Setting compiler options for intero in emacs


When I am developing I like to have -fdefer-type-errors and -XPartialTypeSignatures enabled. Currently I just add

{-# LANGUAGE PartialTypeSignatures #-}
{-# OPTIONS_GHC -fdefer-type-errors #-}

to the top of the file I am working with. However this is not ideal as I often forget to remove these lines once I am done. Is there an option to pass these to intero in emacs?


Solution

  • This can now be archived by setting intero-extra-ghc-options and intero-extra-ghci-options.