HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulehttp-types-0.12.6Haskell2010

Network.HTTP.Types.QueryLike

Some type classes to make more general functions when handling query strings.

  • 3 classes
  • Packagehttp-types-0.12.6
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceQueryLike.hs
classclass QueryLike a where
#

Types which can, and commonly are, converted to Query are in this class.

You can use lists of simple key value pairs, with ByteString (strict, or lazy: ByteString), Text, or String as the key/value types. You can also have the value type lifted into a Maybe to support keys without values; and finally it is possible to put each pair into a Maybe for key-value pairs that aren't always present.

Methods

Instances2QueryLike
classclass QueryValueLike a where
#

Types which, in a Query-like key-value list, are used in the Value position.

Instances5QueryValueLike