ghc-mod-2.0.0: test/FlagSpec.hs
module FlagSpec where
import Control.Applicative
import Expectation
import Language.Haskell.GhcMod
import Test.Hspec
spec :: Spec
spec = do
describe "listFlags" $ do
it "lists up GHC flags" $ do
flags <- lines <$> listFlags defaultOptions
flags `shouldContain` "-fno-warn-orphans"