servant/servant-client/test/Servant/Client/TestServer.hs

19 lines
527 B
Haskell
Raw Normal View History

2015-11-25 10:31:58 +01:00
{-# LANGUAGE CPP #-}
2016-01-04 19:04:10 +01:00
-- | Testing works very differently under ghc and ghcjs. This module acts as a
-- CPP switch and import different modules depending on the used compiler (ghc
-- or ghcjs). Both imported modules provide the same API.
2015-11-25 10:31:58 +01:00
module Servant.Client.TestServer (
buildTestServer,
2016-01-04 17:59:28 +01:00
TestServer(..),
2016-01-04 19:04:10 +01:00
withServer,
2015-11-25 10:31:58 +01:00
)where
#ifdef __GHCJS__
import Servant.Client.TestServer.GHCJS
#else
import Servant.Client.TestServer.GHC
#endif
2016-01-04 17:59:28 +01:00
import Servant.Client.TestServer.Types