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

Moduleaeson-2.2.3.0Haskell2010

Data.Aeson.QQ.Simple

Like Data.Aeson.QQ but without interpolation.

  • 1 value
  • Packageaeson-2.2.3.0
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceSimple.hs
valueaesonQQ :: QuasiQuoter
#

Converts a string representation of a JSON value into Value at compile-time.

{-# LANGUAGE QuasiQuotes #-}

import Data.Aeson (Value)
import Data.Aeson.QQ.Simple

joe :: Value
joe = [aesonQQ|{ "name": "Joe", "age": 12 }|]