on master help sign in
Removed FromText references from docs.
commit4f558971d1f3364c947d7417461c73d920e32d63 authorAlexander Kjeldaas <ak@formalprivacy.com> dateFri 1 Apr 2016, 22:56 (11 years ago) parent2fb981f
2 files changed+2−2
doc/tutorial/ApiType.lhs+1−1 servant-client/src/Servant/Client.hs+1−1
doc/tutorial/ApiType.lhs+1−1
@@ -135,7 +135,7 @@ data Capture (s :: Symbol) a
135135```
136136
137137In some web frameworks, you use regexes for captures. We use a
138−[`FromText`](https://hackage.haskell.org/package/servant/docs/Servant-Common-Text.html#t:FromText)
138+[`FromHttpApiData`](https://hackage.haskell.org/package/http-api-data/docs/Web-HttpApiData.html#t:FromHttpApiData)
139139class, which the captured value must be an instance of.
140140
141141Examples:
servant-client/src/Servant/Client.hs+1−1
@@ -173,7 +173,7 @@ instance OVERLAPPING_
173173-- Example:
174174--
175175-- > newtype Referer = Referer { referrer :: Text }
176−-- > deriving (Eq, Show, Generic, FromText, ToHttpApiData)
176+-- > deriving (Eq, Show, Generic, ToHttpApiData)
177177-- >
178178-- > -- GET /view-my-referer
179179-- > type MyApi = "view-my-referer" :> Header "Referer" Referer :> Get '[JSON] Referer