DataFrame.Internal.Types

Synopsis

Documentation

data Rep Source #

A type with column representations used to select the "right" representation when specializing the toColumn function.

type family If (cond :: Bool) (yes :: k) (no :: k) :: k where ... Source #

Type-level if statement.

Equations

If 'True (yes :: k) (_1 :: k) = yes 
If 'False (_1 :: k) (no :: k) = no 

type family Unboxable a :: Bool where ... Source #

All unboxable types (according to the vector package).

type family KindOf a :: Rep where ... Source #

Compute the column representation tag for any ‘a’.

data SBool (b :: Bool) where Source #

Type-level boolean for constraint/type comparison.

class SBoolI (b :: Bool) where Source #

The runtime witness for our type-level branching.

Instances

Instances details

type family Promote a b where ... Source #

Numeric type promotion: resolves the common type for mixed arithmetic. Double dominates over Float/Int; Float dominates over Int; same types stay unchanged.

type family PromoteDiv a b where ... Source #

Like Promote, but integral × integral → Double for use with ./ . Double/Float still dominate; any two integral types (same or mixed) become Double.