Removed FromText references from docs.
This commit is contained in:
parent
2fb981f02a
commit
4f558971d1
2 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ data Capture (s :: Symbol) a
|
|||
```
|
||||
|
||||
In some web frameworks, you use regexes for captures. We use a
|
||||
[`FromText`](https://hackage.haskell.org/package/servant/docs/Servant-Common-Text.html#t:FromText)
|
||||
[`FromHttpApiData`](https://hackage.haskell.org/package/http-api-data/docs/Web-HttpApiData.html#t:FromHttpApiData)
|
||||
class, which the captured value must be an instance of.
|
||||
|
||||
Examples:
|
||||
|
|
|
@ -173,7 +173,7 @@ instance OVERLAPPING_
|
|||
-- Example:
|
||||
--
|
||||
-- > newtype Referer = Referer { referrer :: Text }
|
||||
-- > deriving (Eq, Show, Generic, FromText, ToHttpApiData)
|
||||
-- > deriving (Eq, Show, Generic, ToHttpApiData)
|
||||
-- >
|
||||
-- > -- GET /view-my-referer
|
||||
-- > type MyApi = "view-my-referer" :> Header "Referer" Referer :> Get '[JSON] Referer
|
||||
|
|
Loading…
Reference in a new issue