argo-0.2021.11.13: Parse and render JSON.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Argo.Type.Decimal

Documentation

data Decimal Source #

Constructors

Decimal Integer Integer 

Instances

Instances details
Eq Decimal Source # 
Instance details

Defined in Argo.Type.Decimal

Methods

(==) :: Decimal -> Decimal -> Bool #

(/=) :: Decimal -> Decimal -> Bool #

Show Decimal Source # 
Instance details

Defined in Argo.Type.Decimal

Generic Decimal Source # 
Instance details

Defined in Argo.Type.Decimal

Associated Types

type Rep Decimal :: Type -> Type #

Methods

from :: Decimal -> Rep Decimal x #

to :: Rep Decimal x -> Decimal #

NFData Decimal Source # 
Instance details

Defined in Argo.Type.Decimal

Methods

rnf :: Decimal -> () #

HasCodec Decimal Source # 
Instance details

Defined in Argo.Class.HasCodec

Lift Decimal Source # 
Instance details

Defined in Argo.Type.Decimal

Methods

lift :: Decimal -> Q Exp #

liftTyped :: Decimal -> Q (TExp Decimal) #

type Rep Decimal Source # 
Instance details

Defined in Argo.Type.Decimal

type Rep Decimal = D1 ('MetaData "Decimal" "Argo.Type.Decimal" "argo-0.2021.11.13-1TtZ14vgzh82izzBXuBqZ0" 'False) (C1 ('MetaCons "Decimal" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))

factor :: (Num a, Integral b) => b -> a -> b -> (a, b) Source #