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

Modulecanonical-json-0.6.0.1Haskell2010

Text.JSON.Canonical.Types

  • 3 types
  • 2 values
datadata JSValue
#
Instances7Eq, Ord, Read, Show, NFData, FromJSON, …
  • Eq JSValueDefined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Ord JSValueDefined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Read JSValueDefined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Show JSValueDefined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • NFData JSValueDefined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Monad m => FromJSON m JSValueDefined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Class
  • Monad m => ToJSON m JSValueDefined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Class
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.

Constructors

Instances17Bounded, Enum, Eq, Integral, Data, Num, …
  • Bounded Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Enum Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Eq Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Integral Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Data Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Num Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Ord Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Read Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Real Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Show Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Ix Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Bits Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • FiniteBits Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • Storable Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • PrintfArg Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Types
  • ReportSchemaErrors m => FromJSON m Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Class
  • Monad m => ToJSON m Int54Defined in canonical-json-0.6.0.1 · Text.JSON.Canonical.Class
newtypenewtype JSString
#

Canonical JSON strings are in fact just bytes.

Instances13Eq, Ord, Read, Show, IsString, Semigroup, …