Safe Haskell | None |
---|---|
Language | Haskell2010 |
Extras for working with servant
Synopsis
- useApi :: (GenericServant f mode, GenericServant g mode) => (f mode -> ToServant g mode) -> f mode -> g mode
- noContent :: Functor m => m NoContent -> m ()
Documentation
useApi :: (GenericServant f mode, GenericServant g mode) => (f mode -> ToServant g mode) -> f mode -> g mode Source #
Postcomposes fromServant
to an accessor,
preserving the mode parameter, because otherwise the mode parameter
can not be inferred.
Ideally, this functionality would be built into a new combinator.