git.iko.soy/typeable/servant
on master help sign in
add a comment about the Server instance for Capture
commit45a625c72c791494e9f51f45c5feac5fb208cb77 authorAlp Mestanogullari <alpmestan@gmail.com> dateTue 21 Oct 2014, 16:18 (12 years ago) parenta650b97
1 file changed+3
src/Servant.hs+3
src/Servant.hs+3
@@ -32,6 +32,9 @@ captured _ = capture
3232instance (KnownSymbol capture, Captured a, HasServer sublayout)
3333 => HasServer (Capture capture a :> sublayout) where
3434
35+ -- this means that what follows the capture
36+ -- must necessarily be a function that expects
37+ -- the captured value. :-(
3538 type Server (Capture capture a :> sublayout) =
3639 Capture capture a :> (a -> Server sublayout)
3740