ghc-mod/test/LangSpec.hs

14 lines
335 B
Haskell
Raw Normal View History

2013-02-12 05:06:22 +00:00
module LangSpec where
import Control.Applicative
import Expectation
2013-05-20 02:29:44 +00:00
import Language.Haskell.GhcMod
import Test.Hspec
2013-02-12 05:06:22 +00:00
spec :: Spec
spec = do
describe "listLanguages" $ do
it "lists up language extensions" $ do
2013-02-12 05:09:42 +00:00
exts <- lines <$> listLanguages defaultOptions
exts `shouldContain` "OverloadedStrings"