Moduleservant-0.20.2Haskell2010
Servant.API.UVerb.Union
Type-level code for implementing and using UVerb. Heavily inspired by
world-peace.
- 2 types
- 2 values
- Packageservant-0.20.2
- Exports7
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceUnion.hs
Convenience function to apply a function to an unknown union element using a type class. All elements of the union must have instances in the type class, and the function is applied unconditionally.
See also: matchUnion.
Convenience function to extract a union element using cast, ie. return the value if the
selected type happens to be the actual type of the union in this value, or Nothing
otherwise.
See also: foldMapUnion.