HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulehttp-types-0.12.4Haskell2010

Network.HTTP.Types.QueryLike

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

  • 3 classes
  • Packagehttp-types-0.12.4
  • 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