@@ -39,9 +39,9 @@ captured _ = fromText
40-- Example:
40-- Example:
42−-- > type MyApi = "books" ':>' 'Capture' "isbn" 'Text' ':>' 'Get' Book
42+-- > type MyApi = "books" :> Capture "isbn" Text :> Get Book
44−-- > server :: 'Server' MyApi
44+-- > server :: Server MyApi
45-- > server = getBook
45-- > server = getBook
46-- > where getBook :: Text -> 'EitherT' (Int, String) IO Book
46-- > where getBook :: Text -> 'EitherT' (Int, String) IO Book
47-- > getBook isbn = ...
47-- > getBook isbn = ...
@@ -73,7 +73,7 @@ instance (KnownSymbol capture, FromText a, HasServer sublayout)
74-- Example:
74-- Example:
76−-- > type MyApi = "books" ':>' 'Capture' "isbn" 'Text' ':>' 'Get' Book
76+-- > type MyApi = "books" :> Capture "isbn" Text :> Get Book
78-- > myApi :: Proxy MyApi
78-- > myApi :: Proxy MyApi
79-- > myApi = Proxy
79-- > myApi = Proxy