canonical-json-0.6.0.1: Canonical JSON for signing and hashing JSON values
Copyright (c) Duncan Coutts 2015 2017
Safe Haskell None
Language Haskell2010

Text.JSON.Canonical.Types

Description

Synopsis

Documentation

data JSValue Source #

newtype Int54 Source #

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

Int54

Instances

Instances details
Bounded Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Enum Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Eq Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Integral Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Data Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Methods

gfoldl :: ( forall d b. Data d => c (d -> b) -> d -> c b) -> ( forall g. g -> c g) -> Int54 -> c Int54 Source #

gunfold :: ( forall b r. Data b => c (b -> r) -> c r) -> ( forall r. r -> c r) -> Constr -> c Int54 Source #

toConstr :: Int54 -> Constr Source #

dataTypeOf :: Int54 -> DataType Source #

dataCast1 :: Typeable t => ( forall d. Data d => c (t d)) -> Maybe (c Int54 ) Source #

dataCast2 :: Typeable t => ( forall d e. ( Data d, Data e) => c (t d e)) -> Maybe (c Int54 ) Source #

gmapT :: ( forall b. Data b => b -> b) -> Int54 -> Int54 Source #

gmapQl :: (r -> r' -> r) -> r -> ( forall d. Data d => d -> r') -> Int54 -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> ( forall d. Data d => d -> r') -> Int54 -> r Source #

gmapQ :: ( forall d. Data d => d -> u) -> Int54 -> [u] Source #

gmapQi :: Int -> ( forall d. Data d => d -> u) -> Int54 -> u Source #

gmapM :: Monad m => ( forall d. Data d => d -> m d) -> Int54 -> m Int54 Source #

gmapMp :: MonadPlus m => ( forall d. Data d => d -> m d) -> Int54 -> m Int54 Source #

gmapMo :: MonadPlus m => ( forall d. Data d => d -> m d) -> Int54 -> m Int54 Source #

Num Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Ord Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Read Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Real Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Show Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Ix Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

PrintfArg Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Storable Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

Bits Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

FiniteBits Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Types

ReportSchemaErrors m => FromJSON m Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Class

Monad m => ToJSON m Int54 Source #
Instance details

Defined in Text.JSON.Canonical.Class

data JSString Source #

Canonical JSON strings are in fact just bytes.

Instances

Instances details
Eq JSString Source #
Instance details

Defined in Text.JSON.Canonical.Types

Ord JSString Source #
Instance details

Defined in Text.JSON.Canonical.Types

Read JSString Source #
Instance details

Defined in Text.JSON.Canonical.Types

Show JSString Source #
Instance details

Defined in Text.JSON.Canonical.Types

IsString JSString Source #
Instance details

Defined in Text.JSON.Canonical.Types

Semigroup JSString Source #
Instance details

Defined in Text.JSON.Canonical.Types

Monoid JSString Source #
Instance details

Defined in Text.JSON.Canonical.Types

PrintfArg JSString Source #
Instance details

Defined in Text.JSON.Canonical.Types

NFData JSString Source #
Instance details

Defined in Text.JSON.Canonical.Types

Monad m => FromObjectKey m JSString Source #
Instance details

Defined in Text.JSON.Canonical.Class

Monad m => ToObjectKey m JSString Source #
Instance details

Defined in Text.JSON.Canonical.Class

ReportSchemaErrors m => FromJSON m JSString Source #
Instance details

Defined in Text.JSON.Canonical.Class

Monad m => ToJSON m JSString Source #
Instance details

Defined in Text.JSON.Canonical.Class