HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehttp-types-0.12.6Haskell2010

Network.HTTP.Types.QueryLike

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

Synopsis
  • 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