ghc-mod/test/FlagSpec.hs
2013-09-03 11:44:59 +09:00

13 lines
302 B
Haskell

module FlagSpec where
import Control.Applicative
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"]