@@ -0,0 +1,32 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE TypeOperators #-}
3+module Servant.Utils.EnterSpec where
5+import Test.Hspec (Spec)
8+import Servant.Utils.Enter
10+-------------------------------------------------------------------------------
11+-- https://github.com/haskell-servant/servant/issues/734
12+-------------------------------------------------------------------------------
14+-- This didn't fail if executed in GHCi; cannot have as a doctest.
21+server :: App Int :<|> (String -> App Bool)
24+server' :: App Int :<|> (String -> App Bool)
25+server' = enter f server
27+-------------------------------------------------------------------------------
29+-------------------------------------------------------------------------------