Workaround TypeError doctest failures
This commit is contained in:
parent
c5cd6a2172
commit
df0755c557
1 changed files with 4 additions and 2 deletions
|
@ -71,9 +71,11 @@ spec = describe "Servant.Utils.Links" $ do
|
||||||
-- Before https://github.com/CRogers/should-not-typecheck/issues/5 is fixed,
|
-- Before https://github.com/CRogers/should-not-typecheck/issues/5 is fixed,
|
||||||
-- we'll just use doctest
|
-- we'll just use doctest
|
||||||
--
|
--
|
||||||
|
-- with TypeError comparing for errors is difficult.
|
||||||
|
--
|
||||||
-- >>> apiLink (Proxy :: Proxy WrongPath)
|
-- >>> apiLink (Proxy :: Proxy WrongPath)
|
||||||
-- ...
|
-- ...
|
||||||
-- ...Could not deduce...
|
-- ......:...:...
|
||||||
-- ...
|
-- ...
|
||||||
--
|
--
|
||||||
-- >>> apiLink (Proxy :: Proxy WrongReturnType)
|
-- >>> apiLink (Proxy :: Proxy WrongReturnType)
|
||||||
|
@ -83,7 +85,7 @@ spec = describe "Servant.Utils.Links" $ do
|
||||||
--
|
--
|
||||||
-- >>> apiLink (Proxy :: Proxy WrongContentType)
|
-- >>> apiLink (Proxy :: Proxy WrongContentType)
|
||||||
-- ...
|
-- ...
|
||||||
-- ...Could not deduce...
|
-- ......:...:...
|
||||||
-- ...
|
-- ...
|
||||||
--
|
--
|
||||||
-- >>> apiLink (Proxy :: Proxy WrongMethod)
|
-- >>> apiLink (Proxy :: Proxy WrongMethod)
|
||||||
|
|
Loading…
Reference in a new issue