Skip to content

Commit

Permalink
Removed FromText references from docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkjeldaas committed Apr 1, 2016
1 parent 2fb981f commit 4f55897
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/tutorial/ApiType.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion servant-client/src/Servant/Client.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f55897

Please sign in to comment.