git.iko.soy/typeable/servant-reflex
on master help sign in
Merge branch 'document-tags-multi'
commitc84e87d3fda06f9c5929f32d9bb93c5e47b1f4ba authorGreg Hale <imalsogreg@gmail.com> dateSat 18 Mar 2017, 22:20 (10 years ago) parent83f4f0ed8822c1
1 file changed+2−2
README.md+2−2
README.md+2−2
@@ -145,7 +145,7 @@ The input and the return type of a client function like `getDouble` are both eve
145145
146146So far we have used an `Event t ()` to trigger sending a request. If we choose e.g. `Double` for the third `Proxy` argument to `client`, then `Event t Double` will be used to trigger requests, and each `ReqResult` will carry the tag of its request. Imagine we wanted to display not just the last "double" from `doubleIt`, but a whole table of valid inputs and their doubled responses:
147147
148−```
148+```haskell
149149 ...
150150 inp <- textInput def
151151
@@ -175,7 +175,7 @@ So far we have used an `Event t ()` to trigger sending a request. If we choose e
175175
176176'Servant.Reflex.Multi' provides an alternative client-generation function called 'clientA' (client applicative). Choose a container type that has both `Applicative` and `Traversable` instances, and pass it to `clientA` through another 'Proxy'. Our `sayHi` client function will then have this type:
177177
178−```
178+```haskell
179179sayHi
180180 :: Dynamic t (f (QParam Text))
181181 -> Dynamic t (f [Text])