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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 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