Update doctest to be compatible with newer GHC
This commit is contained in:
parent
3f6886ad2d
commit
86c61c6dbd
2 changed files with 4 additions and 4 deletions
|
@ -110,7 +110,7 @@ type family IsElem' a s :: Constraint
|
|||
--
|
||||
-- >>> ok (Proxy :: Proxy (IsElem ("bye" :> Get '[JSON] Int) SampleAPI))
|
||||
-- ...
|
||||
-- ... Could not deduce...
|
||||
-- ... Could not ...
|
||||
-- ...
|
||||
--
|
||||
-- An endpoint is considered within an api even if it is missing combinators
|
||||
|
@ -151,7 +151,7 @@ type family IsElem endpoint api :: Constraint where
|
|||
--
|
||||
-- >>> ok (Proxy :: Proxy (IsSubAPI (SampleAPI :<|> Get '[JSON] Int) SampleAPI))
|
||||
-- ...
|
||||
-- ... Could not deduce...
|
||||
-- ... Could not ...
|
||||
-- ...
|
||||
--
|
||||
-- This uses @IsElem@ for checking; thus the note there applies here.
|
||||
|
@ -174,7 +174,7 @@ type family AllIsElem xs api :: Constraint where
|
|||
--
|
||||
-- >>> ok (Proxy :: Proxy (IsIn (Get '[JSON] Int) (Header "h" Bool :> Get '[JSON] Int)))
|
||||
-- ...
|
||||
-- ... Could not deduce...
|
||||
-- ... Could not ...
|
||||
-- ...
|
||||
type family IsIn (endpoint :: *) (api :: *) :: Constraint where
|
||||
IsIn e (sa :<|> sb) = Or (IsIn e sa) (IsIn e sb)
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
-- >>> let bad_link = Proxy :: Proxy ("hello" :> Delete '[JSON] NoContent)
|
||||
-- >>> safeLink api bad_link
|
||||
-- ...
|
||||
-- ...Could not deduce...
|
||||
-- ...Could not ...
|
||||
-- ...
|
||||
--
|
||||
-- This error is essentially saying that the type family couldn't find
|
||||
|
|
Loading…
Reference in a new issue