add a comment about the Server instance for Capture
This commit is contained in:
parent
a650b97378
commit
45a625c72c
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ captured _ = capture
|
||||||
instance (KnownSymbol capture, Captured a, HasServer sublayout)
|
instance (KnownSymbol capture, Captured a, HasServer sublayout)
|
||||||
=> HasServer (Capture capture a :> sublayout) where
|
=> HasServer (Capture capture a :> sublayout) where
|
||||||
|
|
||||||
|
-- this means that what follows the capture
|
||||||
|
-- must necessarily be a function that expects
|
||||||
|
-- the captured value. :-(
|
||||||
type Server (Capture capture a :> sublayout) =
|
type Server (Capture capture a :> sublayout) =
|
||||||
Capture capture a :> (a -> Server sublayout)
|
Capture capture a :> (a -> Server sublayout)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue