@@ -20,7 +20,7 @@
23−-- >>> type Hello = "hello" :> Get Int
23+-- >>> type Hello = "hello" :> Get '[JSON] Int
24-- >>> type Bye = "bye" :> QueryParam "name" String :> Delete
24-- >>> type Bye = "bye" :> QueryParam "name" String :> Delete
25-- >>> type API = Hello :<|> Bye
25-- >>> type API = Hello :<|> Bye
26-- >>> let api = Proxy :: Proxy API
26-- >>> let api = Proxy :: Proxy API
@@ -40,7 +40,7 @@
40-- function that accepts that input and generates a link. This is best shown
40-- function that accepts that input and generates a link. This is best shown
41-- with an example. Here, a link is generated with no parameters:
41-- with an example. Here, a link is generated with no parameters:
43−-- >>> let hello = Proxy :: Proxy ("hello" :> Get Int)
43+-- >>> let hello = Proxy :: Proxy ("hello" :> Get '[JSON] Int)
44-- >>> print (safeLink api hello :: URI)
44-- >>> print (safeLink api hello :: URI)
@@ -74,7 +74,7 @@
74-- <BLANKLINE>
74-- <BLANKLINE>
75-- <interactive>:64:1:
75-- <interactive>:64:1:
76-- Could not deduce (Or
76-- Could not deduce (Or
77−-- (IsElem' Delete (Get Int))
77+-- (IsElem' Delete (Get '[JSON] Int))
78-- (IsElem'
78-- (IsElem'
79-- ("hello" :> Delete)
79-- ("hello" :> Delete)
80-- ("bye" :> (QueryParam "name" String :> Delete))))
80-- ("bye" :> (QueryParam "name" String :> Delete))))