on master help sign in
Workaround TypeError doctest failures
df0755cOleg Grenrus
servant/test/Servant/Utils/LinksSpec.hs+4−2
@@ -71,9 +71,11 @@ spec = describe "Servant.Utils.Links" $ do
71-- Before https://github.com/CRogers/should-not-typecheck/issues/5 is fixed,
71-- Before https://github.com/CRogers/should-not-typecheck/issues/5 is fixed,
72-- we'll just use doctest
72-- we'll just use doctest
73--
73--
74+-- with TypeError comparing for errors is difficult.
75+--
74-- >>> apiLink (Proxy :: Proxy WrongPath)
76-- >>> apiLink (Proxy :: Proxy WrongPath)
75-- ...
77-- ...
76−-- ...Could not deduce...
78+-- ......:...:...
77-- ...
79-- ...
78--
80--
79-- >>> apiLink (Proxy :: Proxy WrongReturnType)
81-- >>> apiLink (Proxy :: Proxy WrongReturnType)
@@ -83,7 +85,7 @@ spec = describe "Servant.Utils.Links" $ do
83--
85--
84-- >>> apiLink (Proxy :: Proxy WrongContentType)
86-- >>> apiLink (Proxy :: Proxy WrongContentType)
85-- ...
87-- ...
86−-- ...Could not deduce...
88+-- ......:...:...
87-- ...
89-- ...
88--
90--
89-- >>> apiLink (Proxy :: Proxy WrongMethod)
91-- >>> apiLink (Proxy :: Proxy WrongMethod)