Removed FromText references from docs.

This commit is contained in:
Alexander Kjeldaas 2016-04-01 22:56:19 +02:00
parent 2fb981f02a
commit 4f558971d1
2 changed files with 2 additions and 2 deletions

View file

@ -135,7 +135,7 @@ data Capture (s :: Symbol) a
``` ```
In some web frameworks, you use regexes for captures. We use 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. class, which the captured value must be an instance of.
Examples: Examples:

View file

@ -173,7 +173,7 @@ instance OVERLAPPING_
-- Example: -- Example:
-- --
-- > newtype Referer = Referer { referrer :: Text } -- > newtype Referer = Referer { referrer :: Text }
-- > deriving (Eq, Show, Generic, FromText, ToHttpApiData) -- > deriving (Eq, Show, Generic, ToHttpApiData)
-- > -- >
-- > -- GET /view-my-referer -- > -- GET /view-my-referer
-- > type MyApi = "view-my-referer" :> Header "Referer" Referer :> Get '[JSON] Referer -- > type MyApi = "view-my-referer" :> Header "Referer" Referer :> Get '[JSON] Referer