2013-02-12 05:12:15 +00:00
|
|
|
module FlagSpec where
|
|
|
|
|
|
|
|
import Control.Applicative
|
2017-01-12 15:36:47 +00:00
|
|
|
import GhcMod
|
2013-05-20 02:29:44 +00:00
|
|
|
import Test.Hspec
|
2014-07-11 01:10:37 +00:00
|
|
|
import TestUtils
|
2015-08-31 06:01:20 +00:00
|
|
|
import Prelude
|
2013-02-12 05:12:15 +00:00
|
|
|
|
|
|
|
spec :: Spec
|
|
|
|
spec = do
|
2014-07-11 01:10:37 +00:00
|
|
|
describe "flags" $ do
|
2016-05-22 00:55:06 +00:00
|
|
|
it "contains at least `-fprint-explicit-foralls" $ do
|
2014-07-11 01:10:37 +00:00
|
|
|
f <- runD $ lines <$> flags
|
2016-05-22 00:55:06 +00:00
|
|
|
f `shouldContain` ["-fprint-explicit-foralls"]
|