HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulesnap-core-1.0.5.1Haskell2010

Snap.Internal.Parsing

Synopsis
  • Packagesnap-core-1.0.5.1
  • Exports44
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceParsing.hs

Used for "#field-name", and field-name = token, so "#token": comma-separated tokens/field-names, like a header field list.

typetype DList a = [a] -> [a]
#

Like printUrlEncoded, but produces a Builder instead of a ByteString. Useful for constructing a large string efficiently in a single step.

Example:

ghci> import Data.Map
ghci> import Data.Monoid
ghci> import Data.ByteString.Builder
ghci> let bldr = buildUrlEncoded (Data.Map.fromList [(Name, ["John Doe"]), (Age, ["23"])])
ghci> toLazyByteString $ byteString "http://example.com/script?" <> bldr
"http://example.com/script?Age=23&Name=John+Doe"