HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehackage-security-0.6.3.2Haskell2010

Hackage.Security.JSON

Hackage-specific wrappers around the Util.JSON module

  • 9 types
  • 6 classes
  • 26 values

Deserialization errors

3 declarations
datadata DeserializationError
#

Constructors

Instances6Show, Exception, Pretty, MonadError

MonadKeys

5 declarations

Reader monads

6 declarations
newtypenewtype ReadJSON_Keys_Layout a
#
Instances7Monad, Functor, Applicative, MonadKeys, ReportSchemaErrors, MonadError, …
newtypenewtype ReadJSON_Keys_NoLayout a
#
Instances6Monad, Functor, Applicative, MonadKeys, ReportSchemaErrors, MonadError
newtypenewtype ReadJSON_NoKeys_NoLayout a
#
Instances5Monad, Functor, Applicative, ReportSchemaErrors, MonadError

Utility

Writing

2 declarations

Utility

Re-exports

14 declarations
classclass ToJSON (m :: Type -> Type) a where
#

Methods

Instances40ToJSON, …
classclass FromJSON (m :: Type -> Type) a where
#

Methods

Instances39FromJSON, …
datadata JSValue
#
Instances6Eq, Ord, Read, Show, FromJSON, ToJSON
  • Eq JSValueDefined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Ord JSValueDefined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Read JSValueDefined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Show JSValueDefined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Monad m => FromJSON m JSValueDefined in hackage-security-0.6.3.2 · Hackage.Security.Util.JSON
  • Monad m => ToJSON m JSValueDefined in hackage-security-0.6.3.2 · Hackage.Security.Util.JSON
newtypenewtype Int54
#

54-bit integer values

JavaScript can only safely represent numbers between -(2^53 - 1) and 2^53 - 1.

TODO: Although we introduce the type here, we don't actually do any bounds checking and just inherit all type class instance from Int64. We should probably define fromInteger to do bounds checking, give different instances for type classes such as Bounded and FiniteBits, etc.

Instances17Bounded, Enum, Eq, Integral, Data, Num, …
  • Bounded Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Enum Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Eq Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Integral Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Data Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Num Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Ord Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Read Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Real Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Show Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Ix Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Bits Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • FiniteBits Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • Storable Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • PrintfArg Int54Defined in hackage-security-0.6.3.2 · Text.JSON.Canonical
  • ReportSchemaErrors m => FromJSON m Int54Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.JSON
  • Monad m => ToJSON m Int54Defined in hackage-security-0.6.3.2 · Hackage.Security.Util.JSON
classclass ToObjectKey (m :: Type -> Type) a where
#

Used in the ToJSON instance for Map

Methods

Instances5ToObjectKey
classclass FromObjectKey (m :: Type -> Type) a where
#

Used in the FromJSON instance for Map

Methods

Instances5FromObjectKey
classclass (Applicative m, Monad m) => ReportSchemaErrors (m :: Type -> Type) where
#

Monads in which we can report schema errors

Methods

Instances3ReportSchemaErrors