git.iko.soy/typeable/servant
on master help sign in
fix haddocks
commitc945915f1dcdd9654b1970391f1adc6c8a3243b8 authorAlp Mestanogullari <alpmestan@gmail.com> dateSat 22 Nov 2014, 15:58 (12 years ago) parente9ebb0f
1 file changed+3−3
src/Servant/API/Capture.hs+3−3
src/Servant/API/Capture.hs+3−3
@@ -39,9 +39,9 @@ captured _ = fromText
3939--
4040-- Example:
4141--
42−-- > type MyApi = "books" ':>' 'Capture' "isbn" 'Text' ':>' 'Get' Book
42+-- > type MyApi = "books" :> Capture "isbn" Text :> Get Book
4343-- >
44−-- > server :: 'Server' MyApi
44+-- > server :: Server MyApi
4545-- > server = getBook
4646-- > where getBook :: Text -> 'EitherT' (Int, String) IO Book
4747-- > getBook isbn = ...
@@ -73,7 +73,7 @@ instance (KnownSymbol capture, FromText a, HasServer sublayout)
7373--
7474-- Example:
7575--
76−-- > type MyApi = "books" ':>' 'Capture' "isbn" 'Text' ':>' 'Get' Book
76+-- > type MyApi = "books" :> Capture "isbn" Text :> Get Book
7777-- >
7878-- > myApi :: Proxy MyApi
7979-- > myApi = Proxy