TestApi: improve docs and remove Request (..).

This commit is contained in:
Björn Buckwalter 2011-09-17 01:48:02 +08:00
parent 5cec074cfb
commit 7b3d69f657
2 changed files with 7 additions and 5 deletions

View File

@ -1,10 +1,11 @@
--
-- | WARNING: This module exposes internal interfaces solely for the
-- purpose of facilitating unit testing with cabal install. Library
-- users should not import this module.
-- purpose of facilitating cabal-driven testing of said interfaces.
-- This module is NOT part of the public Yesod API and should NOT be
-- imported by library users.
--
module Yesod.Internal.TestApi
( Request (..), randomString, parseWaiRequest'
( randomString, parseWaiRequest'
) where
import Yesod.Internal.Request (Request (..), randomString, parseWaiRequest')
import Yesod.Internal.Request (randomString, parseWaiRequest')

View File

@ -6,7 +6,8 @@ import System.Random (StdGen, mkStdGen)
import Network.Wai as W
import Network.Wai.Test
import Yesod.Internal.TestApi
import Yesod.Internal.TestApi (randomString, parseWaiRequest')
import Yesod.Request (Request (..))
import Test.Hspec
randomStringSpecs :: [Spec]