ClickHaskell-1.1.0: ClickHouse driver
Copyright(c) 2023 Dmitry Kovalev
LicenseBSD-3-Clause
MaintainerDmitry Kovalev
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

ClickHaskell

Description

For full documentation, visit: https://clickhaskell.dev/

Synopsis

Connection

data ConnectionArgs Source #

See defaultConnectionArgs for documentation

defaultConnectionArgs :: ConnectionArgs Source #

Default connection settings that follow clickhouse-client defaults

These defaults can be modified with setUser, setPassword, setHost, setPort, setDatabase

For TLS support, see ClickHaskell-tls package

setHost :: HostName -> ConnectionArgs -> ConnectionArgs Source #

Overrides default hostname "localhost"

setPort :: ServiceName -> ConnectionArgs -> ConnectionArgs Source #

Set a custom port instead of the default 9000 (or 9443 if TLS is used).

The default port can only be overridden by overrideNetwork.

setUser :: String -> ConnectionArgs -> ConnectionArgs Source #

Overrides default user "default"

setDatabase :: String -> ConnectionArgs -> ConnectionArgs Source #

Overrides default database "default"

setPassword :: String -> ConnectionArgs -> ConnectionArgs Source #

Overrides default password ""

data Connection where Source #

Constructors

MkConnection :: MVar ConnectionState -> Connection 

Hacking

overrideInitConnection :: (HostName -> Socket -> IO BufferArgs) -> ConnectionArgs -> ConnectionArgs Source #

This function should be used when you want to override the default connection behaviour

Watch ClickHaskell-tls package for example

data BufferArgs Source #

Constructors

MkBufferArgs 

Fields

overrideHostname :: String -> ConnectionArgs -> ConnectionArgs Source #

Overrides default client hostname value which is:

  1. $HOSTNAME env variable value (if set)
  2. "" otherwise

Client hostname being displayed in ClickHouse logs

overrideOsUser :: String -> ConnectionArgs -> ConnectionArgs Source #

Overrides default os_name value which is: 1. $USER variable value (if set) 2. "" otherwise

overrideDefaultPort :: ServiceName -> ConnectionArgs -> ConnectionArgs Source #

Override the default port used when no port was set explicitly via setPort.

This does not immediately fix the connection port: if the user has already called setPort, that value takes precedence. Otherwise, the given port becomes the new default.

Typical use case: provide a different default for TLS connections, e.g. 9443.

Statements and commands

Exceptions

data ClientError where Source #

A wrapper for all client-related errors

e.g. command, select, insert etc

Constructors

UnmatchedResult 

Fields

DatabaseException 

Fields

InternalError :: HasCallStack => InternalError -> ClientError 

data ConnectionError Source #

Errors occured on connection operations

Constructors

NoAdressResolved

Occurs when getAddrInfo returns an empty result

EstablishTimeout

Occurs on socket connection timeout

ServerClosedConnection

Occurs on readSock empty "" result

data UserError Source #

Errors intended to be handled by developers

Constructors

UnmatchedType String

Column type mismatch in data packet

UnmatchedColumn String

Column name mismatch in data packet

UnmatchedColumnsCount String

Occurs when actual columns count less or more than expected

data InternalError Source #

These exceptions might indicate internal bugs.

If you encounter one, please report it.

Settings

passSettings :: Statement statement => (DbSettings -> DbSettings) -> statement -> statement Source #

Wrapper for settings passing

addSetting :: forall (name :: Symbol) settType. KnownSetting name settType => settType -> DbSettings -> DbSettings Source #

SELECT

Runner

select :: forall (columns :: [Type]) output result. (HasCallStack, ClickHaskell columns output) => Select columns output -> Connection -> ([output] -> IO result) -> IO [result] Source #

Takes Select, Connection and block processing function

Returns block processing result

Statements

data Select (columns :: [Type]) output Source #

SELECT statement abstraction

unsafeMkSelect :: forall (columns :: [Type]) output. ([(Builder, Builder)] -> Builder) -> Select columns output Source #

fromGenerateRandom :: forall (columns :: [Type]) output. (UInt64, UInt64, UInt64) -> UInt64 -> Select columns output Source #

fromTable :: forall (name :: Symbol) (columns :: [Type]) output. KnownSymbol name => Select columns output Source #

Type-safe wrapper for statements like

SELECT ${columns} FROM ${table}

View

fromView :: forall (name :: Symbol) (columns :: [Type]) output (params :: [Type]). KnownSymbol name => (Parameters ('[] :: [Type]) -> Parameters params) -> Select columns output Source #

parameter :: forall (name :: Symbol) t (params :: [Type]). KnownParameter (Parameter name t) => t -> Parameters params -> Parameters (Parameter name t ': params) Source #

data Parameter (name :: Symbol) chType Source #

data Parameters (parameters :: [Type]) Source #

viewParameters :: forall (passedParameters :: [Type]). (Parameters ('[] :: [Type]) -> Parameters passedParameters) -> Builder Source #

>>> viewParameters (parameter @"a3" ("a3Val" :: ChString) . parameter @"a2" ("a2Val" :: ChString))
"(a3='a3Val', a2='a2Val')"

INSERT

data Insert (columns :: [Type]) output Source #

INSERT statement generation abstraction

unsafeMkInsert :: forall (columns :: [Type]) output. ([(Builder, Builder)] -> Builder) -> Insert columns output Source #

insert :: forall (columns :: [Type]) record. (HasCallStack, ClickHaskell columns record) => Insert columns record -> Connection -> [record] -> IO () Source #

intoTable :: forall (name :: Symbol) (columns :: [Type]) output. KnownSymbol name => Insert columns output Source #

Modifiers

class ToQueryPart chType where Source #

Methods

toQueryPart :: chType -> Builder Source #

Instances

Instances details
ToQueryPart Float32 Source # 
Instance details

Defined in ClickHaskell.Primitive.TFloat

ToQueryPart Float64 Source # 
Instance details

Defined in ClickHaskell.Primitive.TFloat

ToQueryPart ChString Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

ToQueryPart UInt128 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

ToQueryPart UInt16 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

ToQueryPart UInt256 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

ToQueryPart UInt32 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

ToQueryPart UInt64 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

ToQueryPart UInt8 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

ToQueryPart UUID Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

ToQueryPart Int16 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Int32 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Int64 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Int8 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Int128 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Int256 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Bool Source # 
Instance details

Defined in ClickHaskell.Primitive.TBool

(IsChType chType, ToQueryPart chType) => ToQueryPart (Array chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TArray

Methods

toQueryPart :: Array chType -> Builder Source #

ToQueryPart (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

ToQueryPart (Enum16 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

toQueryPart :: Enum16 enums -> Builder Source #

ToQueryPart (Enum8 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

toQueryPart :: Enum8 enums -> Builder Source #

ToQueryPart chType => ToQueryPart (LowCardinality chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

ToQueryPart chType => ToQueryPart (Nullable chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TNullable

Methods

toQueryPart :: Nullable chType -> Builder Source #

KnownNat (10 ^ s) => ToQueryPart (Decimal128 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

KnownNat (10 ^ s) => ToQueryPart (Decimal256 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

KnownNat (10 ^ s) => ToQueryPart (Decimal32 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

KnownNat (10 ^ s) => ToQueryPart (Decimal64 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Ping

ping :: HasCallStack => Connection -> IO () Source #

Sends Ping packet and handles Pong packet

Commands

command :: HasCallStack => Connection -> Command -> IO () Source #

Might be used for any command without data responses

For example: CREATE, TRUNCATE, KILL, SET, GRANT

Throws exception if any data was returned

data Command Source #

Instances

Instances details
IsString Command Source # 
Instance details

Defined in ClickHaskell.Statements

Methods

fromString :: String -> Command #

Deriving

class GenericClickHaskell record columns => ClickHaskell (columns :: [Type]) record where Source #

Minimal complete definition

Nothing

class ToChType chType userType where Source #

Methods

toChType :: userType -> chType Source #

fromChType :: chType -> userType Source #

Instances

Instances details
ToChType Date Word16 Source # 
Instance details

Defined in ClickHaskell.Primitive.TDate

ToChType ChString Builder Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

ToChType ChString ByteString Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

ToChType ChString String Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

(IsChType chType, chType ~ inputType) => ToChType chType inputType Source # 
Instance details

Defined in ClickHaskell.Primitive.Serialization

Methods

toChType :: inputType -> chType Source #

fromChType :: chType -> inputType Source #

ToChType UUID (Word64, Word64) Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

ToChType (DateTime tz) Word32 Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

ToChType (DateTime tz) UTCTime Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

ToChType (Enum16 enums) Int16 Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

toChType :: Int16 -> Enum16 enums Source #

fromChType :: Enum16 enums -> Int16 Source #

ToChType (Enum8 enums) Int8 Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

toChType :: Int8 -> Enum8 enums Source #

fromChType :: Enum8 enums -> Int8 Source #

ToChType inputType chType => ToChType (LowCardinality inputType) chType Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

Methods

toChType :: chType -> LowCardinality inputType Source #

fromChType :: LowCardinality inputType -> chType Source #

ToChType chType inputType => ToChType (Array chType) [inputType] Source # 
Instance details

Defined in ClickHaskell.Primitive.TArray

Methods

toChType :: [inputType] -> Array chType Source #

fromChType :: Array chType -> [inputType] Source #

ToChType inputType chType => ToChType (Nullable inputType) (Nullable chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TNullable

Methods

toChType :: Nullable chType -> Nullable inputType Source #

fromChType :: Nullable inputType -> Nullable chType Source #

ToChType (DateTime64 precision tz) Word64 Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

toChType :: Word64 -> DateTime64 precision tz Source #

fromChType :: DateTime64 precision tz -> Word64 Source #

KnownNat precision => ToChType (DateTime64 precision tz) UTCTime Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

toChType :: UTCTime -> DateTime64 precision tz Source #

fromChType :: DateTime64 precision tz -> UTCTime Source #

sPowered ~ (10 ^ s) => ToChType (Decimal128 p s) (Fixed sPowered) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

toChType :: Fixed sPowered -> Decimal128 p s Source #

fromChType :: Decimal128 p s -> Fixed sPowered Source #

sPowered ~ (10 ^ s) => ToChType (Decimal256 p s) (Fixed sPowered) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

toChType :: Fixed sPowered -> Decimal256 p s Source #

fromChType :: Decimal256 p s -> Fixed sPowered Source #

sPowered ~ (10 ^ s) => ToChType (Decimal32 p s) (Fixed sPowered) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

toChType :: Fixed sPowered -> Decimal32 p s Source #

fromChType :: Decimal32 p s -> Fixed sPowered Source #

sPowered ~ (10 ^ s) => ToChType (Decimal64 p s) (Fixed sPowered) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

toChType :: Fixed sPowered -> Decimal64 p s Source #

fromChType :: Decimal64 p s -> Fixed sPowered Source #

class SerializableColumn col Source #

Minimal complete definition

deserializeColumnI, serializeColumnI

Instances

Instances details
(KnownSymbol name, IsChType chType, TypeError (('Text "Nested Arrays types (column \"" ':<>: 'Text name) ':<>: 'Text "\") are unsupported") :: Constraint) => SerializableColumn (Column name (Array (Array chType))) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name (Array (Array chType))) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array (Array chType))) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name (Array (Array chType))) => ProtocolRevision -> (a -> GetColumnType (Column name (Array (Array chType)))) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array (Array chType))) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name (Array (Array chType)))) -> [a] -> Builder

(KnownColumn (Column name (Array chType)), Serializable chType) => SerializableColumn (Column name (Array chType)) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name (Array chType)) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array chType)) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name (Array chType)) => ProtocolRevision -> (a -> GetColumnType (Column name (Array chType))) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array chType)) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name (Array chType))) -> [a] -> Builder

(KnownColumn (Column name (LowCardinality chType)), Serializable chType, IsLowCardinalitySupported chType, TypeError ('Text "LowCardinality deserialization still unsupported") :: Constraint) => SerializableColumn (Column name (LowCardinality chType)) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name (LowCardinality chType)) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name (LowCardinality chType)) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name (LowCardinality chType)) => ProtocolRevision -> (a -> GetColumnType (Column name (LowCardinality chType))) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name (LowCardinality chType)) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name (LowCardinality chType))) -> [a] -> Builder

(KnownColumn (Column name (Nullable chType)), Serializable chType, IsChType chType) => SerializableColumn (Column name (Nullable chType)) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name (Nullable chType)) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Nullable chType)) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name (Nullable chType)) => ProtocolRevision -> (a -> GetColumnType (Column name (Nullable chType))) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Nullable chType)) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name (Nullable chType))) -> [a] -> Builder

(Serializable chType, IsChType chType) => SerializableColumn (Column name chType) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name chType) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name chType) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name chType) => ProtocolRevision -> (a -> GetColumnType (Column name chType)) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name chType) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name chType)) -> [a] -> Builder

data Column (name :: Symbol) chType Source #

Column declaration

For example:

type MyColumn = Column "myColumn" ChString

Instances

Instances details
(IsChType chType, KnownSymbol name) => KnownColumn (Column name chType) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

(KnownSymbol name, IsChType chType, TypeError (('Text "Nested Arrays types (column \"" ':<>: 'Text name) ':<>: 'Text "\") are unsupported") :: Constraint) => SerializableColumn (Column name (Array (Array chType))) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name (Array (Array chType))) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array (Array chType))) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name (Array (Array chType))) => ProtocolRevision -> (a -> GetColumnType (Column name (Array (Array chType)))) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array (Array chType))) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name (Array (Array chType)))) -> [a] -> Builder

(KnownColumn (Column name (Array chType)), Serializable chType) => SerializableColumn (Column name (Array chType)) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name (Array chType)) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array chType)) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name (Array chType)) => ProtocolRevision -> (a -> GetColumnType (Column name (Array chType))) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array chType)) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name (Array chType))) -> [a] -> Builder

(KnownColumn (Column name (LowCardinality chType)), Serializable chType, IsLowCardinalitySupported chType, TypeError ('Text "LowCardinality deserialization still unsupported") :: Constraint) => SerializableColumn (Column name (LowCardinality chType)) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name (LowCardinality chType)) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name (LowCardinality chType)) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name (LowCardinality chType)) => ProtocolRevision -> (a -> GetColumnType (Column name (LowCardinality chType))) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name (LowCardinality chType)) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name (LowCardinality chType))) -> [a] -> Builder

(KnownColumn (Column name (Nullable chType)), Serializable chType, IsChType chType) => SerializableColumn (Column name (Nullable chType)) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name (Nullable chType)) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Nullable chType)) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name (Nullable chType)) => ProtocolRevision -> (a -> GetColumnType (Column name (Nullable chType))) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Nullable chType)) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name (Nullable chType))) -> [a] -> Builder

(Serializable chType, IsChType chType) => SerializableColumn (Column name chType) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name chType) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name chType) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name chType) => ProtocolRevision -> (a -> GetColumnType (Column name chType)) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name chType) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name chType)) -> [a] -> Builder

class (IsChType (GetColumnType column), KnownSymbol (GetColumnName column)) => KnownColumn column Source #

Instances

Instances details
(IsChType chType, KnownSymbol name) => KnownColumn (Column name chType) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

ClickHouse types

class IsChType chType where Source #

Methods

chTypeName :: String Source #

Shows database original type name

chTypeName @ChString = "String"
chTypeName @(Nullable UInt32) = "Nullable(UInt32)"

defaultValueOfTypeName :: chType Source #

Instances

Instances details
IsChType Date Source # 
Instance details

Defined in ClickHaskell.Primitive.TDate

IsChType Float32 Source # 
Instance details

Defined in ClickHaskell.Primitive.TFloat

IsChType Float64 Source # 
Instance details

Defined in ClickHaskell.Primitive.TFloat

IsChType ChString Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

IsChType UInt128 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

IsChType UInt16 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

IsChType UInt256 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

IsChType UInt32 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

IsChType UInt64 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

IsChType UInt8 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

IsChType UUID Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

IsChType Int16 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

IsChType Int32 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

IsChType Int64 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

IsChType Int8 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

IsChType Int128 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

IsChType Int256 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

IsChType Bool Source # 
Instance details

Defined in ClickHaskell.Primitive.TBool

IsChType chType => IsChType (Array chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TArray

KnownSymbol tz => IsChType (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

KnownSymbol enums => IsChType (Enum16 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

KnownSymbol enums => IsChType (Enum8 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

IsLowCardinalitySupported chType => IsChType (LowCardinality chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

IsChType chType => IsChType (Nullable chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TNullable

(KnownSymbol tz, KnownNat precision) => IsChType (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

(KnownNat p, KnownNat s, KnownNat (10 ^ s)) => IsChType (Decimal128 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

(KnownNat p, KnownNat s, KnownNat (10 ^ s)) => IsChType (Decimal256 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

(KnownNat p, KnownNat s, KnownNat (10 ^ s)) => IsChType (Decimal32 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

(KnownNat p, KnownNat s, KnownNat (10 ^ s)) => IsChType (Decimal64 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

data DateTime (tz :: Symbol) Source #

ClickHouse DateTime column type (parametrized with timezone)

>>> chTypeName @(DateTime "")
"DateTime"
>>> chTypeName @(DateTime "UTC")
"DateTime('UTC')"

Note: DateTime stores whole seconds only, so converting from UTCTime will drop any sub-second precision.

>>> let myUtcTime = posixSecondsToUTCTime 0.042_042
>>> toChType @(DateTime "") @UTCTime myUtcTime
0

Instances

Instances details
KnownSymbol tz => IsChType (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

ToQueryPart (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

NFData (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

rnf :: DateTime tz -> () #

Bits (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

(.&.) :: DateTime tz -> DateTime tz -> DateTime tz #

(.|.) :: DateTime tz -> DateTime tz -> DateTime tz #

xor :: DateTime tz -> DateTime tz -> DateTime tz #

complement :: DateTime tz -> DateTime tz #

shift :: DateTime tz -> Int -> DateTime tz #

rotate :: DateTime tz -> Int -> DateTime tz #

zeroBits :: DateTime tz #

bit :: Int -> DateTime tz #

setBit :: DateTime tz -> Int -> DateTime tz #

clearBit :: DateTime tz -> Int -> DateTime tz #

complementBit :: DateTime tz -> Int -> DateTime tz #

testBit :: DateTime tz -> Int -> Bool #

bitSizeMaybe :: DateTime tz -> Maybe Int #

bitSize :: DateTime tz -> Int #

isSigned :: DateTime tz -> Bool #

shiftL :: DateTime tz -> Int -> DateTime tz #

unsafeShiftL :: DateTime tz -> Int -> DateTime tz #

shiftR :: DateTime tz -> Int -> DateTime tz #

unsafeShiftR :: DateTime tz -> Int -> DateTime tz #

rotateL :: DateTime tz -> Int -> DateTime tz #

rotateR :: DateTime tz -> Int -> DateTime tz #

popCount :: DateTime tz -> Int #

Bounded (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

minBound :: DateTime tz #

maxBound :: DateTime tz #

Enum (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

succ :: DateTime tz -> DateTime tz #

pred :: DateTime tz -> DateTime tz #

toEnum :: Int -> DateTime tz #

fromEnum :: DateTime tz -> Int #

enumFrom :: DateTime tz -> [DateTime tz] #

enumFromThen :: DateTime tz -> DateTime tz -> [DateTime tz] #

enumFromTo :: DateTime tz -> DateTime tz -> [DateTime tz] #

enumFromThenTo :: DateTime tz -> DateTime tz -> DateTime tz -> [DateTime tz] #

Num (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

(+) :: DateTime tz -> DateTime tz -> DateTime tz #

(-) :: DateTime tz -> DateTime tz -> DateTime tz #

(*) :: DateTime tz -> DateTime tz -> DateTime tz #

negate :: DateTime tz -> DateTime tz #

abs :: DateTime tz -> DateTime tz #

signum :: DateTime tz -> DateTime tz #

fromInteger :: Integer -> DateTime tz #

Integral (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

quot :: DateTime tz -> DateTime tz -> DateTime tz #

rem :: DateTime tz -> DateTime tz -> DateTime tz #

div :: DateTime tz -> DateTime tz -> DateTime tz #

mod :: DateTime tz -> DateTime tz -> DateTime tz #

quotRem :: DateTime tz -> DateTime tz -> (DateTime tz, DateTime tz) #

divMod :: DateTime tz -> DateTime tz -> (DateTime tz, DateTime tz) #

toInteger :: DateTime tz -> Integer #

Real (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

toRational :: DateTime tz -> Rational #

Show (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

showsPrec :: Int -> DateTime tz -> ShowS #

show :: DateTime tz -> String #

showList :: [DateTime tz] -> ShowS #

Eq (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

(==) :: DateTime tz -> DateTime tz -> Bool #

(/=) :: DateTime tz -> DateTime tz -> Bool #

Ord (DateTime tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

compare :: DateTime tz -> DateTime tz -> Ordering #

(<) :: DateTime tz -> DateTime tz -> Bool #

(<=) :: DateTime tz -> DateTime tz -> Bool #

(>) :: DateTime tz -> DateTime tz -> Bool #

(>=) :: DateTime tz -> DateTime tz -> Bool #

max :: DateTime tz -> DateTime tz -> DateTime tz #

min :: DateTime tz -> DateTime tz -> DateTime tz #

ToChType (DateTime tz) Word32 Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

ToChType (DateTime tz) UTCTime Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

data DateTime64 (precision :: Nat) (tz :: Symbol) Source #

ClickHouse DateTime64 column type (parametrized with timezone)

>>> chTypeName @(DateTime64 3 "")
"DateTime64(3)"
>>> chTypeName @(DateTime64 3 "UTC")
"DateTime64(3, 'UTC')"

Note: conversion from UTCTime may lose sub-second precision if the precision parameter is lower than the actual timestamp precision.

>>> let myUtcTime = posixSecondsToUTCTime 42.000_000_042
>>> toChType @(DateTime64 6 "") @UTCTime myUtcTime
42000000
>>> toChType @(DateTime64 9 "") @UTCTime myUtcTime
42000000042

Instances

Instances details
(KnownSymbol tz, KnownNat precision) => IsChType (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

NFData (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

rnf :: DateTime64 precision tz -> () #

Bits (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

(.&.) :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

(.|.) :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

xor :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

complement :: DateTime64 precision tz -> DateTime64 precision tz #

shift :: DateTime64 precision tz -> Int -> DateTime64 precision tz #

rotate :: DateTime64 precision tz -> Int -> DateTime64 precision tz #

zeroBits :: DateTime64 precision tz #

bit :: Int -> DateTime64 precision tz #

setBit :: DateTime64 precision tz -> Int -> DateTime64 precision tz #

clearBit :: DateTime64 precision tz -> Int -> DateTime64 precision tz #

complementBit :: DateTime64 precision tz -> Int -> DateTime64 precision tz #

testBit :: DateTime64 precision tz -> Int -> Bool #

bitSizeMaybe :: DateTime64 precision tz -> Maybe Int #

bitSize :: DateTime64 precision tz -> Int #

isSigned :: DateTime64 precision tz -> Bool #

shiftL :: DateTime64 precision tz -> Int -> DateTime64 precision tz #

unsafeShiftL :: DateTime64 precision tz -> Int -> DateTime64 precision tz #

shiftR :: DateTime64 precision tz -> Int -> DateTime64 precision tz #

unsafeShiftR :: DateTime64 precision tz -> Int -> DateTime64 precision tz #

rotateL :: DateTime64 precision tz -> Int -> DateTime64 precision tz #

rotateR :: DateTime64 precision tz -> Int -> DateTime64 precision tz #

popCount :: DateTime64 precision tz -> Int #

Bounded (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

minBound :: DateTime64 precision tz #

maxBound :: DateTime64 precision tz #

Enum (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

succ :: DateTime64 precision tz -> DateTime64 precision tz #

pred :: DateTime64 precision tz -> DateTime64 precision tz #

toEnum :: Int -> DateTime64 precision tz #

fromEnum :: DateTime64 precision tz -> Int #

enumFrom :: DateTime64 precision tz -> [DateTime64 precision tz] #

enumFromThen :: DateTime64 precision tz -> DateTime64 precision tz -> [DateTime64 precision tz] #

enumFromTo :: DateTime64 precision tz -> DateTime64 precision tz -> [DateTime64 precision tz] #

enumFromThenTo :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz -> [DateTime64 precision tz] #

Num (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

(+) :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

(-) :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

(*) :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

negate :: DateTime64 precision tz -> DateTime64 precision tz #

abs :: DateTime64 precision tz -> DateTime64 precision tz #

signum :: DateTime64 precision tz -> DateTime64 precision tz #

fromInteger :: Integer -> DateTime64 precision tz #

Integral (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

quot :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

rem :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

div :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

mod :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

quotRem :: DateTime64 precision tz -> DateTime64 precision tz -> (DateTime64 precision tz, DateTime64 precision tz) #

divMod :: DateTime64 precision tz -> DateTime64 precision tz -> (DateTime64 precision tz, DateTime64 precision tz) #

toInteger :: DateTime64 precision tz -> Integer #

Real (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

toRational :: DateTime64 precision tz -> Rational #

Show (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

showsPrec :: Int -> DateTime64 precision tz -> ShowS #

show :: DateTime64 precision tz -> String #

showList :: [DateTime64 precision tz] -> ShowS #

Eq (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

(==) :: DateTime64 precision tz -> DateTime64 precision tz -> Bool #

(/=) :: DateTime64 precision tz -> DateTime64 precision tz -> Bool #

Ord (DateTime64 precision tz) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

compare :: DateTime64 precision tz -> DateTime64 precision tz -> Ordering #

(<) :: DateTime64 precision tz -> DateTime64 precision tz -> Bool #

(<=) :: DateTime64 precision tz -> DateTime64 precision tz -> Bool #

(>) :: DateTime64 precision tz -> DateTime64 precision tz -> Bool #

(>=) :: DateTime64 precision tz -> DateTime64 precision tz -> Bool #

max :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

min :: DateTime64 precision tz -> DateTime64 precision tz -> DateTime64 precision tz #

ToChType (DateTime64 precision tz) Word64 Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

toChType :: Word64 -> DateTime64 precision tz Source #

fromChType :: DateTime64 precision tz -> Word64 Source #

KnownNat precision => ToChType (DateTime64 precision tz) UTCTime Source # 
Instance details

Defined in ClickHaskell.Primitive.TDateTime

Methods

toChType :: UTCTime -> DateTime64 precision tz Source #

fromChType :: DateTime64 precision tz -> UTCTime Source #

data Date Source #

ClickHouse Date column type

Instances

Instances details
IsChType Date Source # 
Instance details

Defined in ClickHaskell.Primitive.TDate

NFData Date Source # 
Instance details

Defined in ClickHaskell.Primitive.TDate

Methods

rnf :: Date -> () #

Bits Date Source # 
Instance details

Defined in ClickHaskell.Primitive.TDate

Bounded Date Source # 
Instance details

Defined in ClickHaskell.Primitive.TDate

Enum Date Source # 
Instance details

Defined in ClickHaskell.Primitive.TDate

Methods

succ :: Date -> Date #

pred :: Date -> Date #

toEnum :: Int -> Date #

fromEnum :: Date -> Int #

enumFrom :: Date -> [Date] #

enumFromThen :: Date -> Date -> [Date] #

enumFromTo :: Date -> Date -> [Date] #

enumFromThenTo :: Date -> Date -> Date -> [Date] #

Num Date Source # 
Instance details

Defined in ClickHaskell.Primitive.TDate

Methods

(+) :: Date -> Date -> Date #

(-) :: Date -> Date -> Date #

(*) :: Date -> Date -> Date #

negate :: Date -> Date #

abs :: Date -> Date #

signum :: Date -> Date #

fromInteger :: Integer -> Date #

Show Date Source # 
Instance details

Defined in ClickHaskell.Primitive.TDate

Methods

showsPrec :: Int -> Date -> ShowS #

show :: Date -> String #

showList :: [Date] -> ShowS #

Eq Date Source # 
Instance details

Defined in ClickHaskell.Primitive.TDate

Methods

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

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

ToChType Date Word16 Source # 
Instance details

Defined in ClickHaskell.Primitive.TDate

data Int8 #

8-bit signed integer type

Instances

Instances details
IsChType Int8 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Int8 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

PrintfArg Int8

Since: base-2.1

Instance details

Defined in Text.Printf

NFData Int8 
Instance details

Defined in Control.DeepSeq

Methods

rnf :: Int8 -> () #

Bits Int8

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

FiniteBits Int8

Since: base-4.6.0.0

Instance details

Defined in GHC.Internal.Int

Bounded Int8

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Enum Int8

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

succ :: Int8 -> Int8 #

pred :: Int8 -> Int8 #

toEnum :: Int -> Int8 #

fromEnum :: Int8 -> Int #

enumFrom :: Int8 -> [Int8] #

enumFromThen :: Int8 -> Int8 -> [Int8] #

enumFromTo :: Int8 -> Int8 -> [Int8] #

enumFromThenTo :: Int8 -> Int8 -> Int8 -> [Int8] #

Ix Int8

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

range :: (Int8, Int8) -> [Int8] #

index :: (Int8, Int8) -> Int8 -> Int #

unsafeIndex :: (Int8, Int8) -> Int8 -> Int #

inRange :: (Int8, Int8) -> Int8 -> Bool #

rangeSize :: (Int8, Int8) -> Int #

unsafeRangeSize :: (Int8, Int8) -> Int #

Num Int8

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

(+) :: Int8 -> Int8 -> Int8 #

(-) :: Int8 -> Int8 -> Int8 #

(*) :: Int8 -> Int8 -> Int8 #

negate :: Int8 -> Int8 #

abs :: Int8 -> Int8 #

signum :: Int8 -> Int8 #

fromInteger :: Integer -> Int8 #

Read Int8

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Integral Int8

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

quot :: Int8 -> Int8 -> Int8 #

rem :: Int8 -> Int8 -> Int8 #

div :: Int8 -> Int8 -> Int8 #

mod :: Int8 -> Int8 -> Int8 #

quotRem :: Int8 -> Int8 -> (Int8, Int8) #

divMod :: Int8 -> Int8 -> (Int8, Int8) #

toInteger :: Int8 -> Integer #

Real Int8

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

toRational :: Int8 -> Rational #

Show Int8

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

showsPrec :: Int -> Int8 -> ShowS #

show :: Int8 -> String #

showList :: [Int8] -> ShowS #

Eq Int8

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

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

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

Ord Int8

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

compare :: Int8 -> Int8 -> Ordering #

(<) :: Int8 -> Int8 -> Bool #

(<=) :: Int8 -> Int8 -> Bool #

(>) :: Int8 -> Int8 -> Bool #

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

max :: Int8 -> Int8 -> Int8 #

min :: Int8 -> Int8 -> Int8 #

Hashable Int8 
Instance details

Defined in Data.Hashable.Class

Methods

hashWithSalt :: Int -> Int8 -> Int #

hash :: Int8 -> Int #

Lift Int8 
Instance details

Defined in Language.Haskell.TH.Syntax

Methods

lift :: Quote m => Int8 -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Int8 -> Code m Int8 #

ToChType (Enum8 enums) Int8 Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

toChType :: Int8 -> Enum8 enums Source #

fromChType :: Enum8 enums -> Int8 Source #

data Int16 #

16-bit signed integer type

Instances

Instances details
IsChType Int16 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Int16 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

PrintfArg Int16

Since: base-2.1

Instance details

Defined in Text.Printf

NFData Int16 
Instance details

Defined in Control.DeepSeq

Methods

rnf :: Int16 -> () #

Bits Int16

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

FiniteBits Int16

Since: base-4.6.0.0

Instance details

Defined in GHC.Internal.Int

Bounded Int16

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Enum Int16

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Ix Int16

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Num Int16

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Read Int16

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Integral Int16

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Real Int16

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

toRational :: Int16 -> Rational #

Show Int16

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

showsPrec :: Int -> Int16 -> ShowS #

show :: Int16 -> String #

showList :: [Int16] -> ShowS #

Eq Int16

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

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

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

Ord Int16

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

compare :: Int16 -> Int16 -> Ordering #

(<) :: Int16 -> Int16 -> Bool #

(<=) :: Int16 -> Int16 -> Bool #

(>) :: Int16 -> Int16 -> Bool #

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

max :: Int16 -> Int16 -> Int16 #

min :: Int16 -> Int16 -> Int16 #

Hashable Int16 
Instance details

Defined in Data.Hashable.Class

Methods

hashWithSalt :: Int -> Int16 -> Int #

hash :: Int16 -> Int #

Lift Int16 
Instance details

Defined in Language.Haskell.TH.Syntax

Methods

lift :: Quote m => Int16 -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Int16 -> Code m Int16 #

ToChType (Enum16 enums) Int16 Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

toChType :: Int16 -> Enum16 enums Source #

fromChType :: Enum16 enums -> Int16 Source #

data Int32 #

32-bit signed integer type

Instances

Instances details
IsChType Int32 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Int32 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

PrintfArg Int32

Since: base-2.1

Instance details

Defined in Text.Printf

NFData Int32 
Instance details

Defined in Control.DeepSeq

Methods

rnf :: Int32 -> () #

Bits Int32

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

FiniteBits Int32

Since: base-4.6.0.0

Instance details

Defined in GHC.Internal.Int

Bounded Int32

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Enum Int32

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Ix Int32

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Num Int32

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Read Int32

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Integral Int32

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Real Int32

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

toRational :: Int32 -> Rational #

Show Int32

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

showsPrec :: Int -> Int32 -> ShowS #

show :: Int32 -> String #

showList :: [Int32] -> ShowS #

Eq Int32

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

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

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

Ord Int32

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

compare :: Int32 -> Int32 -> Ordering #

(<) :: Int32 -> Int32 -> Bool #

(<=) :: Int32 -> Int32 -> Bool #

(>) :: Int32 -> Int32 -> Bool #

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

max :: Int32 -> Int32 -> Int32 #

min :: Int32 -> Int32 -> Int32 #

Hashable Int32 
Instance details

Defined in Data.Hashable.Class

Methods

hashWithSalt :: Int -> Int32 -> Int #

hash :: Int32 -> Int #

Lift Int32 
Instance details

Defined in Language.Haskell.TH.Syntax

Methods

lift :: Quote m => Int32 -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Int32 -> Code m Int32 #

data Int64 #

64-bit signed integer type

Instances

Instances details
IsChType Int64 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Int64 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

PrintfArg Int64

Since: base-2.1

Instance details

Defined in Text.Printf

NFData Int64 
Instance details

Defined in Control.DeepSeq

Methods

rnf :: Int64 -> () #

Bits Int64

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

FiniteBits Int64

Since: base-4.6.0.0

Instance details

Defined in GHC.Internal.Int

Bounded Int64

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Enum Int64

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Ix Int64

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Num Int64

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Read Int64

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Integral Int64

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Real Int64

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

toRational :: Int64 -> Rational #

Show Int64

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

showsPrec :: Int -> Int64 -> ShowS #

show :: Int64 -> String #

showList :: [Int64] -> ShowS #

Eq Int64

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

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

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

Ord Int64

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Methods

compare :: Int64 -> Int64 -> Ordering #

(<) :: Int64 -> Int64 -> Bool #

(<=) :: Int64 -> Int64 -> Bool #

(>) :: Int64 -> Int64 -> Bool #

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

max :: Int64 -> Int64 -> Int64 #

min :: Int64 -> Int64 -> Int64 #

Hashable Int64 
Instance details

Defined in Data.Hashable.Class

Methods

hashWithSalt :: Int -> Int64 -> Int #

hash :: Int64 -> Int #

Lift Int64 
Instance details

Defined in Language.Haskell.TH.Syntax

Methods

lift :: Quote m => Int64 -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Int64 -> Code m Int64 #

data Int128 #

Constructors

Int128 

Instances

Instances details
IsChType Int128 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Int128 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

Binary Int128

Since: wide-word-0.1.5.0

Instance details

Defined in Data.WideWord.Int128

Methods

put :: Int128 -> Put #

get :: Get Int128 #

putList :: [Int128] -> Put #

NFData Int128 
Instance details

Defined in Data.WideWord.Int128

Methods

rnf :: Int128 -> () #

Bits Int128 
Instance details

Defined in Data.WideWord.Int128

FiniteBits Int128 
Instance details

Defined in Data.WideWord.Int128

Data Int128 
Instance details

Defined in Data.WideWord.Int128

Methods

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

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

toConstr :: Int128 -> Constr #

dataTypeOf :: Int128 -> DataType #

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

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

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

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

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

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

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

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

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

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

Bounded Int128 
Instance details

Defined in Data.WideWord.Int128

Enum Int128 
Instance details

Defined in Data.WideWord.Int128

Storable Int128 
Instance details

Defined in Data.WideWord.Int128

Generic Int128 
Instance details

Defined in Data.WideWord.Int128

Associated Types

type Rep Int128 
Instance details

Defined in Data.WideWord.Int128

type Rep Int128 = D1 ('MetaData "Int128" "Data.WideWord.Int128" "wide-word-0.1.9.0-2Nd2yqJNBONHflVBBsTt5d" 'False) (C1 ('MetaCons "Int128" 'PrefixI 'True) (S1 ('MetaSel ('Just "int128Hi64") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "int128Lo64") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64)))

Methods

from :: Int128 -> Rep Int128 x #

to :: Rep Int128 x -> Int128 #

Ix Int128 
Instance details

Defined in Data.WideWord.Int128

Num Int128 
Instance details

Defined in Data.WideWord.Int128

Read Int128 
Instance details

Defined in Data.WideWord.Int128

Integral Int128 
Instance details

Defined in Data.WideWord.Int128

Real Int128 
Instance details

Defined in Data.WideWord.Int128

Show Int128 
Instance details

Defined in Data.WideWord.Int128

Eq Int128 
Instance details

Defined in Data.WideWord.Int128

Methods

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

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

Ord Int128 
Instance details

Defined in Data.WideWord.Int128

Hashable Int128 
Instance details

Defined in Data.WideWord.Int128

Methods

hashWithSalt :: Int -> Int128 -> Int #

hash :: Int128 -> Int #

Prim Int128 
Instance details

Defined in Data.WideWord.Int128

type Rep Int128 
Instance details

Defined in Data.WideWord.Int128

type Rep Int128 = D1 ('MetaData "Int128" "Data.WideWord.Int128" "wide-word-0.1.9.0-2Nd2yqJNBONHflVBBsTt5d" 'False) (C1 ('MetaCons "Int128" 'PrefixI 'True) (S1 ('MetaSel ('Just "int128Hi64") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "int128Lo64") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64)))

data Int256 #

Constructors

Int256 

Instances

Instances details
IsChType Int256 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

ToQueryPart Int256 Source # 
Instance details

Defined in ClickHaskell.Primitive.TInt

Binary Int256

Since: wide-word-0.1.5.0

Instance details

Defined in Data.WideWord.Int256

Methods

put :: Int256 -> Put #

get :: Get Int256 #

putList :: [Int256] -> Put #

NFData Int256 
Instance details

Defined in Data.WideWord.Int256

Methods

rnf :: Int256 -> () #

Bits Int256 
Instance details

Defined in Data.WideWord.Int256

FiniteBits Int256 
Instance details

Defined in Data.WideWord.Int256

Data Int256 
Instance details

Defined in Data.WideWord.Int256

Methods

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

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

toConstr :: Int256 -> Constr #

dataTypeOf :: Int256 -> DataType #

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

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

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

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

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

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

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

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

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

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

Bounded Int256 
Instance details

Defined in Data.WideWord.Int256

Enum Int256 
Instance details

Defined in Data.WideWord.Int256

Storable Int256 
Instance details

Defined in Data.WideWord.Int256

Generic Int256 
Instance details

Defined in Data.WideWord.Int256

Associated Types

type Rep Int256 
Instance details

Defined in Data.WideWord.Int256

type Rep Int256 = D1 ('MetaData "Int256" "Data.WideWord.Int256" "wide-word-0.1.9.0-2Nd2yqJNBONHflVBBsTt5d" 'False) (C1 ('MetaCons "Int256" 'PrefixI 'True) ((S1 ('MetaSel ('Just "int256hi") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "int256m1") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "int256m0") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "int256lo") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64))))

Methods

from :: Int256 -> Rep Int256 x #

to :: Rep Int256 x -> Int256 #

Ix Int256 
Instance details

Defined in Data.WideWord.Int256

Num Int256 
Instance details

Defined in Data.WideWord.Int256

Read Int256 
Instance details

Defined in Data.WideWord.Int256

Integral Int256 
Instance details

Defined in Data.WideWord.Int256

Real Int256 
Instance details

Defined in Data.WideWord.Int256

Show Int256 
Instance details

Defined in Data.WideWord.Int256

Eq Int256 
Instance details

Defined in Data.WideWord.Int256

Methods

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

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

Ord Int256 
Instance details

Defined in Data.WideWord.Int256

Hashable Int256 
Instance details

Defined in Data.WideWord.Int256

Methods

hashWithSalt :: Int -> Int256 -> Int #

hash :: Int256 -> Int #

Prim Int256 
Instance details

Defined in Data.WideWord.Int256

type Rep Int256 
Instance details

Defined in Data.WideWord.Int256

type Rep Int256 = D1 ('MetaData "Int256" "Data.WideWord.Int256" "wide-word-0.1.9.0-2Nd2yqJNBONHflVBBsTt5d" 'False) (C1 ('MetaCons "Int256" 'PrefixI 'True) ((S1 ('MetaSel ('Just "int256hi") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "int256m1") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "int256m0") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "int256lo") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64))))

type UInt8 = Word8 Source #

ClickHouse UInt8 column type

type UInt16 = Word16 Source #

ClickHouse UInt16 column type

type UInt32 = Word32 Source #

ClickHouse UInt32 column type

type UInt64 = Word64 Source #

ClickHouse UInt64 column type

type UInt128 = Word128 Source #

ClickHouse UInt128 column type

type UInt256 = Word256 Source #

ClickHouse UInt128 column type

data Word128 #

Constructors

Word128 

Instances

Instances details
IsChType UInt128 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

ToQueryPart UInt128 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

Binary Word128

Since: wide-word-0.1.5.0

Instance details

Defined in Data.WideWord.Word128

Methods

put :: Word128 -> Put #

get :: Get Word128 #

putList :: [Word128] -> Put #

NFData Word128 
Instance details

Defined in Data.WideWord.Word128

Methods

rnf :: Word128 -> () #

Bits Word128 
Instance details

Defined in Data.WideWord.Word128

FiniteBits Word128 
Instance details

Defined in Data.WideWord.Word128

Data Word128 
Instance details

Defined in Data.WideWord.Word128

Methods

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

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

toConstr :: Word128 -> Constr #

dataTypeOf :: Word128 -> DataType #

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

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

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

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

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

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

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

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

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

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

Bounded Word128 
Instance details

Defined in Data.WideWord.Word128

Enum Word128 
Instance details

Defined in Data.WideWord.Word128

Storable Word128 
Instance details

Defined in Data.WideWord.Word128

Generic Word128 
Instance details

Defined in Data.WideWord.Word128

Associated Types

type Rep Word128 
Instance details

Defined in Data.WideWord.Word128

type Rep Word128 = D1 ('MetaData "Word128" "Data.WideWord.Word128" "wide-word-0.1.9.0-2Nd2yqJNBONHflVBBsTt5d" 'False) (C1 ('MetaCons "Word128" 'PrefixI 'True) (S1 ('MetaSel ('Just "word128Hi64") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "word128Lo64") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64)))

Methods

from :: Word128 -> Rep Word128 x #

to :: Rep Word128 x -> Word128 #

Ix Word128 
Instance details

Defined in Data.WideWord.Word128

Num Word128 
Instance details

Defined in Data.WideWord.Word128

Read Word128 
Instance details

Defined in Data.WideWord.Word128

Integral Word128 
Instance details

Defined in Data.WideWord.Word128

Real Word128 
Instance details

Defined in Data.WideWord.Word128

Show Word128 
Instance details

Defined in Data.WideWord.Word128

Eq Word128 
Instance details

Defined in Data.WideWord.Word128

Methods

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

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

Ord Word128 
Instance details

Defined in Data.WideWord.Word128

Hashable Word128 
Instance details

Defined in Data.WideWord.Word128

Methods

hashWithSalt :: Int -> Word128 -> Int #

hash :: Word128 -> Int #

Prim Word128 
Instance details

Defined in Data.WideWord.Word128

type Rep Word128 
Instance details

Defined in Data.WideWord.Word128

type Rep Word128 = D1 ('MetaData "Word128" "Data.WideWord.Word128" "wide-word-0.1.9.0-2Nd2yqJNBONHflVBBsTt5d" 'False) (C1 ('MetaCons "Word128" 'PrefixI 'True) (S1 ('MetaSel ('Just "word128Hi64") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "word128Lo64") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64)))

data Word256 #

Constructors

Word256 

Instances

Instances details
IsChType UInt256 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

ToQueryPart UInt256 Source # 
Instance details

Defined in ClickHaskell.Primitive.TUInt

Binary Word256

Since: wide-word-0.1.5.0

Instance details

Defined in Data.WideWord.Word256

Methods

put :: Word256 -> Put #

get :: Get Word256 #

putList :: [Word256] -> Put #

NFData Word256 
Instance details

Defined in Data.WideWord.Word256

Methods

rnf :: Word256 -> () #

Bits Word256 
Instance details

Defined in Data.WideWord.Word256

FiniteBits Word256 
Instance details

Defined in Data.WideWord.Word256

Data Word256 
Instance details

Defined in Data.WideWord.Word256

Methods

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

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

toConstr :: Word256 -> Constr #

dataTypeOf :: Word256 -> DataType #

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

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

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

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

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

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

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

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

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

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

Bounded Word256 
Instance details

Defined in Data.WideWord.Word256

Enum Word256 
Instance details

Defined in Data.WideWord.Word256

Storable Word256 
Instance details

Defined in Data.WideWord.Word256

Generic Word256 
Instance details

Defined in Data.WideWord.Word256

Associated Types

type Rep Word256 
Instance details

Defined in Data.WideWord.Word256

type Rep Word256 = D1 ('MetaData "Word256" "Data.WideWord.Word256" "wide-word-0.1.9.0-2Nd2yqJNBONHflVBBsTt5d" 'False) (C1 ('MetaCons "Word256" 'PrefixI 'True) ((S1 ('MetaSel ('Just "word256hi") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "word256m1") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "word256m0") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "word256lo") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64))))

Methods

from :: Word256 -> Rep Word256 x #

to :: Rep Word256 x -> Word256 #

Ix Word256 
Instance details

Defined in Data.WideWord.Word256

Num Word256 
Instance details

Defined in Data.WideWord.Word256

Read Word256 
Instance details

Defined in Data.WideWord.Word256

Integral Word256 
Instance details

Defined in Data.WideWord.Word256

Real Word256 
Instance details

Defined in Data.WideWord.Word256

Show Word256 
Instance details

Defined in Data.WideWord.Word256

Eq Word256 
Instance details

Defined in Data.WideWord.Word256

Methods

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

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

Ord Word256 
Instance details

Defined in Data.WideWord.Word256

Hashable Word256 
Instance details

Defined in Data.WideWord.Word256

Methods

hashWithSalt :: Int -> Word256 -> Int #

hash :: Word256 -> Int #

Prim Word256 
Instance details

Defined in Data.WideWord.Word256

type Rep Word256 
Instance details

Defined in Data.WideWord.Word256

type Rep Word256 = D1 ('MetaData "Word256" "Data.WideWord.Word256" "wide-word-0.1.9.0-2Nd2yqJNBONHflVBBsTt5d" 'False) (C1 ('MetaCons "Word256" 'PrefixI 'True) ((S1 ('MetaSel ('Just "word256hi") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "word256m1") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "word256m0") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64) :*: S1 ('MetaSel ('Just "word256lo") 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Word64))))

data Decimal32 (p :: Nat) (s :: Nat) Source #

Read the official ClickHouse documentation for the `Decimal(p, s)` type before use.

In Haskell, this type is represented as a newtype over `Fixed (10 ^ s)`, allowing arbitrarily large integer parts, whereas ClickHouse stores decimals as scaled Int32 values, which may discard some of the integer part if s is large.

See test №6 for an example of potential truncation due to a large scale.

>>> chTypeName @(Decimal32 9 1)
"Decimal(9, 1)"
>>> 1000.1 :: Decimal32 1 1
1000.1
>>> 1000.1 :: Decimal32 9 5
1000.10000

Instances

Instances details
(KnownNat p, KnownNat s, KnownNat (10 ^ s)) => IsChType (Decimal32 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

KnownNat (10 ^ s) => ToQueryPart (Decimal32 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

KnownNat (10 ^ s) => Num (Decimal32 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(+) :: Decimal32 p s -> Decimal32 p s -> Decimal32 p s #

(-) :: Decimal32 p s -> Decimal32 p s -> Decimal32 p s #

(*) :: Decimal32 p s -> Decimal32 p s -> Decimal32 p s #

negate :: Decimal32 p s -> Decimal32 p s #

abs :: Decimal32 p s -> Decimal32 p s #

signum :: Decimal32 p s -> Decimal32 p s #

fromInteger :: Integer -> Decimal32 p s #

KnownNat (10 ^ s) => Fractional (Decimal32 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(/) :: Decimal32 p s -> Decimal32 p s -> Decimal32 p s #

recip :: Decimal32 p s -> Decimal32 p s #

fromRational :: Rational -> Decimal32 p s #

KnownNat (10 ^ s) => Show (Decimal32 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

showsPrec :: Int -> Decimal32 p s -> ShowS #

show :: Decimal32 p s -> String #

showList :: [Decimal32 p s] -> ShowS #

KnownNat (10 ^ s) => Eq (Decimal32 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(==) :: Decimal32 p s -> Decimal32 p s -> Bool #

(/=) :: Decimal32 p s -> Decimal32 p s -> Bool #

KnownNat (10 ^ s) => Ord (Decimal32 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

compare :: Decimal32 p s -> Decimal32 p s -> Ordering #

(<) :: Decimal32 p s -> Decimal32 p s -> Bool #

(<=) :: Decimal32 p s -> Decimal32 p s -> Bool #

(>) :: Decimal32 p s -> Decimal32 p s -> Bool #

(>=) :: Decimal32 p s -> Decimal32 p s -> Bool #

max :: Decimal32 p s -> Decimal32 p s -> Decimal32 p s #

min :: Decimal32 p s -> Decimal32 p s -> Decimal32 p s #

sPowered ~ (10 ^ s) => ToChType (Decimal32 p s) (Fixed sPowered) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

toChType :: Fixed sPowered -> Decimal32 p s Source #

fromChType :: Decimal32 p s -> Fixed sPowered Source #

data Decimal64 (p :: Nat) (s :: Nat) Source #

Read the official ClickHouse documentation for the `Decimal(p, s)` type before use.

In Haskell, this type is represented as a newtype over `Fixed (10 ^ s)`, allowing arbitrarily large integer parts, whereas ClickHouse stores decimals as scaled Int128 values, which may discard some of the integer part if s is large.

See test №6 for an example of potential truncation due to a large scale.

>>> chTypeName @(Decimal64 10 1)
"Decimal(10, 1)"
>>> 1000.1 :: Decimal64 10 1
1000.1
>>> 1000.1 :: Decimal64 10 5
1000.10000

Instances

Instances details
(KnownNat p, KnownNat s, KnownNat (10 ^ s)) => IsChType (Decimal64 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

KnownNat (10 ^ s) => ToQueryPart (Decimal64 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

KnownNat (10 ^ s) => Num (Decimal64 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(+) :: Decimal64 p s -> Decimal64 p s -> Decimal64 p s #

(-) :: Decimal64 p s -> Decimal64 p s -> Decimal64 p s #

(*) :: Decimal64 p s -> Decimal64 p s -> Decimal64 p s #

negate :: Decimal64 p s -> Decimal64 p s #

abs :: Decimal64 p s -> Decimal64 p s #

signum :: Decimal64 p s -> Decimal64 p s #

fromInteger :: Integer -> Decimal64 p s #

KnownNat (10 ^ s) => Fractional (Decimal64 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(/) :: Decimal64 p s -> Decimal64 p s -> Decimal64 p s #

recip :: Decimal64 p s -> Decimal64 p s #

fromRational :: Rational -> Decimal64 p s #

KnownNat (10 ^ s) => Show (Decimal64 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

showsPrec :: Int -> Decimal64 p s -> ShowS #

show :: Decimal64 p s -> String #

showList :: [Decimal64 p s] -> ShowS #

KnownNat (10 ^ s) => Eq (Decimal64 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(==) :: Decimal64 p s -> Decimal64 p s -> Bool #

(/=) :: Decimal64 p s -> Decimal64 p s -> Bool #

KnownNat (10 ^ s) => Ord (Decimal64 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

compare :: Decimal64 p s -> Decimal64 p s -> Ordering #

(<) :: Decimal64 p s -> Decimal64 p s -> Bool #

(<=) :: Decimal64 p s -> Decimal64 p s -> Bool #

(>) :: Decimal64 p s -> Decimal64 p s -> Bool #

(>=) :: Decimal64 p s -> Decimal64 p s -> Bool #

max :: Decimal64 p s -> Decimal64 p s -> Decimal64 p s #

min :: Decimal64 p s -> Decimal64 p s -> Decimal64 p s #

sPowered ~ (10 ^ s) => ToChType (Decimal64 p s) (Fixed sPowered) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

toChType :: Fixed sPowered -> Decimal64 p s Source #

fromChType :: Decimal64 p s -> Fixed sPowered Source #

data Decimal128 (p :: Nat) (s :: Nat) Source #

Read the official ClickHouse documentation for the `Decimal(p, s)` type before use.

In Haskell, this type is represented as a newtype over `Fixed (10 ^ s)`, allowing arbitrarily large integer parts, whereas ClickHouse stores decimals as scaled Int128 values, which may discard some of the integer part if s is large.

See test №6 for an example of potential truncation due to a large scale.

>>> chTypeName @(Decimal128 19 1)
"Decimal(19, 1)"
>>> 1000.1 :: Decimal128 19 1
1000.1
>>> 1000.1 :: Decimal128 19 5
1000.10000

Instances

Instances details
(KnownNat p, KnownNat s, KnownNat (10 ^ s)) => IsChType (Decimal128 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

KnownNat (10 ^ s) => ToQueryPart (Decimal128 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

KnownNat (10 ^ s) => Num (Decimal128 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(+) :: Decimal128 p s -> Decimal128 p s -> Decimal128 p s #

(-) :: Decimal128 p s -> Decimal128 p s -> Decimal128 p s #

(*) :: Decimal128 p s -> Decimal128 p s -> Decimal128 p s #

negate :: Decimal128 p s -> Decimal128 p s #

abs :: Decimal128 p s -> Decimal128 p s #

signum :: Decimal128 p s -> Decimal128 p s #

fromInteger :: Integer -> Decimal128 p s #

KnownNat (10 ^ s) => Fractional (Decimal128 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(/) :: Decimal128 p s -> Decimal128 p s -> Decimal128 p s #

recip :: Decimal128 p s -> Decimal128 p s #

fromRational :: Rational -> Decimal128 p s #

KnownNat (10 ^ s) => Show (Decimal128 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

showsPrec :: Int -> Decimal128 p s -> ShowS #

show :: Decimal128 p s -> String #

showList :: [Decimal128 p s] -> ShowS #

KnownNat (10 ^ s) => Eq (Decimal128 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(==) :: Decimal128 p s -> Decimal128 p s -> Bool #

(/=) :: Decimal128 p s -> Decimal128 p s -> Bool #

KnownNat (10 ^ s) => Ord (Decimal128 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

compare :: Decimal128 p s -> Decimal128 p s -> Ordering #

(<) :: Decimal128 p s -> Decimal128 p s -> Bool #

(<=) :: Decimal128 p s -> Decimal128 p s -> Bool #

(>) :: Decimal128 p s -> Decimal128 p s -> Bool #

(>=) :: Decimal128 p s -> Decimal128 p s -> Bool #

max :: Decimal128 p s -> Decimal128 p s -> Decimal128 p s #

min :: Decimal128 p s -> Decimal128 p s -> Decimal128 p s #

sPowered ~ (10 ^ s) => ToChType (Decimal128 p s) (Fixed sPowered) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

toChType :: Fixed sPowered -> Decimal128 p s Source #

fromChType :: Decimal128 p s -> Fixed sPowered Source #

data Decimal256 (p :: Nat) (s :: Nat) Source #

Read the official ClickHouse documentation for the `Decimal(p, s)` type before use.

In Haskell, this type is represented as a newtype over `Fixed (10 ^ s)`, allowing arbitrarily large integer parts, whereas ClickHouse stores decimals as scaled Int128 values, which may discard some of the integer part if s is large.

See test №6 for an example of potential truncation due to a large scale.

>>> chTypeName @(Decimal256 19 1)
"Decimal(19, 1)"
>>> 1000.1 :: Decimal256 19 1
1000.1
>>> 1000.1 :: Decimal256 19 5
1000.10000

Instances

Instances details
(KnownNat p, KnownNat s, KnownNat (10 ^ s)) => IsChType (Decimal256 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

KnownNat (10 ^ s) => ToQueryPart (Decimal256 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

KnownNat (10 ^ s) => Num (Decimal256 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(+) :: Decimal256 p s -> Decimal256 p s -> Decimal256 p s #

(-) :: Decimal256 p s -> Decimal256 p s -> Decimal256 p s #

(*) :: Decimal256 p s -> Decimal256 p s -> Decimal256 p s #

negate :: Decimal256 p s -> Decimal256 p s #

abs :: Decimal256 p s -> Decimal256 p s #

signum :: Decimal256 p s -> Decimal256 p s #

fromInteger :: Integer -> Decimal256 p s #

KnownNat (10 ^ s) => Fractional (Decimal256 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(/) :: Decimal256 p s -> Decimal256 p s -> Decimal256 p s #

recip :: Decimal256 p s -> Decimal256 p s #

fromRational :: Rational -> Decimal256 p s #

KnownNat (10 ^ s) => Show (Decimal256 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

showsPrec :: Int -> Decimal256 p s -> ShowS #

show :: Decimal256 p s -> String #

showList :: [Decimal256 p s] -> ShowS #

KnownNat (10 ^ s) => Eq (Decimal256 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

(==) :: Decimal256 p s -> Decimal256 p s -> Bool #

(/=) :: Decimal256 p s -> Decimal256 p s -> Bool #

KnownNat (10 ^ s) => Ord (Decimal256 p s) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

compare :: Decimal256 p s -> Decimal256 p s -> Ordering #

(<) :: Decimal256 p s -> Decimal256 p s -> Bool #

(<=) :: Decimal256 p s -> Decimal256 p s -> Bool #

(>) :: Decimal256 p s -> Decimal256 p s -> Bool #

(>=) :: Decimal256 p s -> Decimal256 p s -> Bool #

max :: Decimal256 p s -> Decimal256 p s -> Decimal256 p s #

min :: Decimal256 p s -> Decimal256 p s -> Decimal256 p s #

sPowered ~ (10 ^ s) => ToChType (Decimal256 p s) (Fixed sPowered) Source # 
Instance details

Defined in ClickHaskell.Primitive.TDecimal

Methods

toChType :: Fixed sPowered -> Decimal256 p s Source #

fromChType :: Decimal256 p s -> Fixed sPowered Source #

type Nullable = Maybe Source #

ClickHouse Nullable(T) column type (type synonym for Maybe)

data LowCardinality chType Source #

ClickHouse LowCardinality(T) column type

Instances

Instances details
IsLowCardinalitySupported chType => IsChType (LowCardinality chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

ToQueryPart chType => ToQueryPart (LowCardinality chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

(NFData chType, IsLowCardinalitySupported chType) => NFData (LowCardinality chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

Methods

rnf :: LowCardinality chType -> () #

IsString (LowCardinality ChString) Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

(Eq chType, IsLowCardinalitySupported chType) => Eq (LowCardinality chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

Methods

(==) :: LowCardinality chType -> LowCardinality chType -> Bool #

(/=) :: LowCardinality chType -> LowCardinality chType -> Bool #

ToChType inputType chType => ToChType (LowCardinality inputType) chType Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

Methods

toChType :: chType -> LowCardinality inputType Source #

fromChType :: LowCardinality inputType -> chType Source #

(KnownColumn (Column name (LowCardinality chType)), Serializable chType, IsLowCardinalitySupported chType, TypeError ('Text "LowCardinality deserialization still unsupported") :: Constraint) => SerializableColumn (Column name (LowCardinality chType)) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name (LowCardinality chType)) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name (LowCardinality chType)) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name (LowCardinality chType)) => ProtocolRevision -> (a -> GetColumnType (Column name (LowCardinality chType))) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name (LowCardinality chType)) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name (LowCardinality chType))) -> [a] -> Builder

class IsChType chType => IsLowCardinalitySupported chType Source #

Instances

Instances details
IsLowCardinalitySupported ChString Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

(IsChType chType, TypeError (((((('Text "LowCardinality(" ':<>: 'ShowType chType) ':<>: 'Text ") is unsupported") ':$$: 'Text "Use one of these types:") ':$$: 'Text " ChString") ':$$: 'Text " DateTime") ':$$: 'Text " Nullable(T)") :: Constraint) => IsLowCardinalitySupported chType Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

(IsLowCardinalitySupported chType, IsChType (Nullable chType)) => IsLowCardinalitySupported (Nullable chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

data UUID Source #

ClickHouse UUID column type

Instances

Instances details
IsChType UUID Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

ToQueryPart UUID Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

NFData UUID Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

Methods

rnf :: UUID -> () #

Bounded UUID Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

Enum UUID Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

Methods

succ :: UUID -> UUID #

pred :: UUID -> UUID #

toEnum :: Int -> UUID #

fromEnum :: UUID -> Int #

enumFrom :: UUID -> [UUID] #

enumFromThen :: UUID -> UUID -> [UUID] #

enumFromTo :: UUID -> UUID -> [UUID] #

enumFromThenTo :: UUID -> UUID -> UUID -> [UUID] #

Num UUID Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

Methods

(+) :: UUID -> UUID -> UUID #

(-) :: UUID -> UUID -> UUID #

(*) :: UUID -> UUID -> UUID #

negate :: UUID -> UUID #

abs :: UUID -> UUID #

signum :: UUID -> UUID #

fromInteger :: Integer -> UUID #

Show UUID Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

Methods

showsPrec :: Int -> UUID -> ShowS #

show :: UUID -> String #

showList :: [UUID] -> ShowS #

Eq UUID Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

Methods

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

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

ToChType UUID (Word64, Word64) Source # 
Instance details

Defined in ClickHaskell.Primitive.TUUID

data Array a Source #

ClickHouse Array column type

Instances

Instances details
Foldable Array Source # 
Instance details

Defined in ClickHaskell.Primitive.TArray

Methods

fold :: Monoid m => Array m -> m #

foldMap :: Monoid m => (a -> m) -> Array a -> m #

foldMap' :: Monoid m => (a -> m) -> Array a -> m #

foldr :: (a -> b -> b) -> b -> Array a -> b #

foldr' :: (a -> b -> b) -> b -> Array a -> b #

foldl :: (b -> a -> b) -> b -> Array a -> b #

foldl' :: (b -> a -> b) -> b -> Array a -> b #

foldr1 :: (a -> a -> a) -> Array a -> a #

foldl1 :: (a -> a -> a) -> Array a -> a #

toList :: Array a -> [a] #

null :: Array a -> Bool #

length :: Array a -> Int #

elem :: Eq a => a -> Array a -> Bool #

maximum :: Ord a => Array a -> a #

minimum :: Ord a => Array a -> a #

sum :: Num a => Array a -> a #

product :: Num a => Array a -> a #

IsChType chType => IsChType (Array chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TArray

(IsChType chType, ToQueryPart chType) => ToQueryPart (Array chType) Source # 
Instance details

Defined in ClickHaskell.Primitive.TArray

Methods

toQueryPart :: Array chType -> Builder Source #

NFData a => NFData (Array a) Source # 
Instance details

Defined in ClickHaskell.Primitive.TArray

Methods

rnf :: Array a -> () #

Show a => Show (Array a) Source # 
Instance details

Defined in ClickHaskell.Primitive.TArray

Methods

showsPrec :: Int -> Array a -> ShowS #

show :: Array a -> String #

showList :: [Array a] -> ShowS #

Eq a => Eq (Array a) Source # 
Instance details

Defined in ClickHaskell.Primitive.TArray

Methods

(==) :: Array a -> Array a -> Bool #

(/=) :: Array a -> Array a -> Bool #

ToChType chType inputType => ToChType (Array chType) [inputType] Source # 
Instance details

Defined in ClickHaskell.Primitive.TArray

Methods

toChType :: [inputType] -> Array chType Source #

fromChType :: Array chType -> [inputType] Source #

(KnownSymbol name, IsChType chType, TypeError (('Text "Nested Arrays types (column \"" ':<>: 'Text name) ':<>: 'Text "\") are unsupported") :: Constraint) => SerializableColumn (Column name (Array (Array chType))) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name (Array (Array chType))) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array (Array chType))) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name (Array (Array chType))) => ProtocolRevision -> (a -> GetColumnType (Column name (Array (Array chType)))) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array (Array chType))) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name (Array (Array chType)))) -> [a] -> Builder

(KnownColumn (Column name (Array chType)), Serializable chType) => SerializableColumn (Column name (Array chType)) Source # 
Instance details

Defined in ClickHaskell.Protocol.Data

Methods

deserializeColumn :: KnownColumn (Column name (Array chType)) => ErrHandler -> ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array chType)) -> res) -> Get [res]

serializeColumn :: KnownColumn (Column name (Array chType)) => ProtocolRevision -> (a -> GetColumnType (Column name (Array chType))) -> [a] -> Builder

deserializeColumnI :: ProtocolRevision -> UVarInt -> (GetColumnType (Column name (Array chType)) -> a) -> Get [a]

serializeColumnI :: ProtocolRevision -> (a -> GetColumnType (Column name (Array chType))) -> [a] -> Builder

data ChString Source #

ClickHouse String column type

Instances

Instances details
IsChType ChString Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

ToQueryPart ChString Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

IsLowCardinalitySupported ChString Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

NFData ChString Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

Methods

rnf :: ChString -> () #

IsString ChString Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

Show ChString Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

Eq ChString Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

ToChType ChString Builder Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

ToChType ChString ByteString Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

ToChType ChString String Source # 
Instance details

Defined in ClickHaskell.Primitive.TString

IsString (LowCardinality ChString) Source # 
Instance details

Defined in ClickHaskell.Primitive.TLowCardinality

data Enum8 (enums :: Symbol) Source #

Instances

Instances details
KnownSymbol enums => IsChType (Enum8 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

ToQueryPart (Enum8 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

toQueryPart :: Enum8 enums -> Builder Source #

Bits (Enum8 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

(.&.) :: Enum8 enums -> Enum8 enums -> Enum8 enums #

(.|.) :: Enum8 enums -> Enum8 enums -> Enum8 enums #

xor :: Enum8 enums -> Enum8 enums -> Enum8 enums #

complement :: Enum8 enums -> Enum8 enums #

shift :: Enum8 enums -> Int -> Enum8 enums #

rotate :: Enum8 enums -> Int -> Enum8 enums #

zeroBits :: Enum8 enums #

bit :: Int -> Enum8 enums #

setBit :: Enum8 enums -> Int -> Enum8 enums #

clearBit :: Enum8 enums -> Int -> Enum8 enums #

complementBit :: Enum8 enums -> Int -> Enum8 enums #

testBit :: Enum8 enums -> Int -> Bool #

bitSizeMaybe :: Enum8 enums -> Maybe Int #

bitSize :: Enum8 enums -> Int #

isSigned :: Enum8 enums -> Bool #

shiftL :: Enum8 enums -> Int -> Enum8 enums #

unsafeShiftL :: Enum8 enums -> Int -> Enum8 enums #

shiftR :: Enum8 enums -> Int -> Enum8 enums #

unsafeShiftR :: Enum8 enums -> Int -> Enum8 enums #

rotateL :: Enum8 enums -> Int -> Enum8 enums #

rotateR :: Enum8 enums -> Int -> Enum8 enums #

popCount :: Enum8 enums -> Int #

Bounded (Enum8 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

minBound :: Enum8 enums #

maxBound :: Enum8 enums #

Enum (Enum8 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

succ :: Enum8 enums -> Enum8 enums #

pred :: Enum8 enums -> Enum8 enums #

toEnum :: Int -> Enum8 enums #

fromEnum :: Enum8 enums -> Int #

enumFrom :: Enum8 enums -> [Enum8 enums] #

enumFromThen :: Enum8 enums -> Enum8 enums -> [Enum8 enums] #

enumFromTo :: Enum8 enums -> Enum8 enums -> [Enum8 enums] #

enumFromThenTo :: Enum8 enums -> Enum8 enums -> Enum8 enums -> [Enum8 enums] #

Num (Enum8 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

(+) :: Enum8 enums -> Enum8 enums -> Enum8 enums #

(-) :: Enum8 enums -> Enum8 enums -> Enum8 enums #

(*) :: Enum8 enums -> Enum8 enums -> Enum8 enums #

negate :: Enum8 enums -> Enum8 enums #

abs :: Enum8 enums -> Enum8 enums #

signum :: Enum8 enums -> Enum8 enums #

fromInteger :: Integer -> Enum8 enums #

Show (Enum8 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

showsPrec :: Int -> Enum8 enums -> ShowS #

show :: Enum8 enums -> String #

showList :: [Enum8 enums] -> ShowS #

Eq (Enum8 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

(==) :: Enum8 enums -> Enum8 enums -> Bool #

(/=) :: Enum8 enums -> Enum8 enums -> Bool #

ToChType (Enum8 enums) Int8 Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

toChType :: Int8 -> Enum8 enums Source #

fromChType :: Enum8 enums -> Int8 Source #

data Enum16 (enums :: Symbol) Source #

Instances

Instances details
KnownSymbol enums => IsChType (Enum16 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

ToQueryPart (Enum16 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

toQueryPart :: Enum16 enums -> Builder Source #

Bits (Enum16 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

(.&.) :: Enum16 enums -> Enum16 enums -> Enum16 enums #

(.|.) :: Enum16 enums -> Enum16 enums -> Enum16 enums #

xor :: Enum16 enums -> Enum16 enums -> Enum16 enums #

complement :: Enum16 enums -> Enum16 enums #

shift :: Enum16 enums -> Int -> Enum16 enums #

rotate :: Enum16 enums -> Int -> Enum16 enums #

zeroBits :: Enum16 enums #

bit :: Int -> Enum16 enums #

setBit :: Enum16 enums -> Int -> Enum16 enums #

clearBit :: Enum16 enums -> Int -> Enum16 enums #

complementBit :: Enum16 enums -> Int -> Enum16 enums #

testBit :: Enum16 enums -> Int -> Bool #

bitSizeMaybe :: Enum16 enums -> Maybe Int #

bitSize :: Enum16 enums -> Int #

isSigned :: Enum16 enums -> Bool #

shiftL :: Enum16 enums -> Int -> Enum16 enums #

unsafeShiftL :: Enum16 enums -> Int -> Enum16 enums #

shiftR :: Enum16 enums -> Int -> Enum16 enums #

unsafeShiftR :: Enum16 enums -> Int -> Enum16 enums #

rotateL :: Enum16 enums -> Int -> Enum16 enums #

rotateR :: Enum16 enums -> Int -> Enum16 enums #

popCount :: Enum16 enums -> Int #

Bounded (Enum16 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

minBound :: Enum16 enums #

maxBound :: Enum16 enums #

Enum (Enum16 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

succ :: Enum16 enums -> Enum16 enums #

pred :: Enum16 enums -> Enum16 enums #

toEnum :: Int -> Enum16 enums #

fromEnum :: Enum16 enums -> Int #

enumFrom :: Enum16 enums -> [Enum16 enums] #

enumFromThen :: Enum16 enums -> Enum16 enums -> [Enum16 enums] #

enumFromTo :: Enum16 enums -> Enum16 enums -> [Enum16 enums] #

enumFromThenTo :: Enum16 enums -> Enum16 enums -> Enum16 enums -> [Enum16 enums] #

Num (Enum16 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

(+) :: Enum16 enums -> Enum16 enums -> Enum16 enums #

(-) :: Enum16 enums -> Enum16 enums -> Enum16 enums #

(*) :: Enum16 enums -> Enum16 enums -> Enum16 enums #

negate :: Enum16 enums -> Enum16 enums #

abs :: Enum16 enums -> Enum16 enums #

signum :: Enum16 enums -> Enum16 enums #

fromInteger :: Integer -> Enum16 enums #

Show (Enum16 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

showsPrec :: Int -> Enum16 enums -> ShowS #

show :: Enum16 enums -> String #

showList :: [Enum16 enums] -> ShowS #

Eq (Enum16 enums) Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

(==) :: Enum16 enums -> Enum16 enums -> Bool #

(/=) :: Enum16 enums -> Enum16 enums -> Bool #

ToChType (Enum16 enums) Int16 Source # 
Instance details

Defined in ClickHaskell.Primitive.TEnum

Methods

toChType :: Int16 -> Enum16 enums Source #

fromChType :: Enum16 enums -> Int16 Source #