on master help sign in
Syntax highlighting
commitd8822c19d5a8935ae112ddb6d5fb2043f32593b4 authorGreg Hale <imalsogreg@gmail.com> dateSat 18 Mar 2017, 22:19 (10 years ago) parentf5edec9
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])