@@ -1,9 +1,9 @@
11{-# LANGUAGE DataKinds #-}
2−{-# OPTIONS_GHC -fdefer-type-errors #-}
2+{-# OPTIONS_GHC -fdefer-type-errors -Wwarn #-}
33module Servant.Server.Internal.ContextSpec (spec) where
44
55import Data.Proxy (Proxy (..))
6−import Test.Hspec (Spec, describe, it, shouldBe, pending, context)
6+import Test.Hspec (Spec, describe, it, shouldBe, context)
77import Test.ShouldNotTypecheck (shouldNotTypecheck)
88
99import Servant.API
@@ -26,16 +26,17 @@ spec = do
2626 shouldNotTypecheck x
2727
2828 context "Show instance" $ do
29− let cxt = 'a' :. True :. EmptyContext
3029 it "has a Show instance" $ do
30+ let cxt = 'a' :. True :. EmptyContext
3131 show cxt `shouldBe` "'a' :. True :. EmptyContext"
3232
3333 context "bracketing" $ do
3434 it "works" $ do
35+ let cxt = 'a' :. True :. EmptyContext
3536 show (Just cxt) `shouldBe` "Just ('a' :. True :. EmptyContext)"
3637
3738 it "works with operators" $ do
38− let cxt = (1 :. 'a' :. EmptyContext) :<|> ('b' :. True :. EmptyContext)
39+ let cxt = ((1 :: Integer) :. 'a' :. EmptyContext) :<|> ('b' :. True :. EmptyContext)
3940 show cxt `shouldBe` "(1 :. 'a' :. EmptyContext) :<|> ('b' :. True :. EmptyContext)"
4041
4142 describe "descendIntoNamedContext" $ do