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

Modulecanonical-json-0.6.0.1Haskell2010

Text.JSON.Canonical.Types

Synopsis
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, …