analyze-0.1.0.0: making data science easy and safe with data frames

Safe HaskellNone
LanguageHaskell2010

Analyze.Values

Description

Simple value types and functions.

Synopsis

Documentation

data Value Source #

Union type for values.

Instances

Eq Value Source # 

Methods

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

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

Show Value Source # 

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

valueToType :: Value -> ValueType Source #

Returns the type of the value.

getText :: Value -> Maybe Text Source #

Extracts Text from the Value.

getInteger :: Value -> Maybe Integer Source #

Extracts Integer from the Value.

getDouble :: Value -> Maybe Double Source #

Extracts Double from the Value.

getBool :: Value -> Maybe Bool Source #

Extracts Bool from the Value.

textual :: (Data k, MonadThrow m) => k -> Value -> m Text Source #

Use with requireWhere to read Text values.

integral :: (Data k, MonadThrow m) => k -> Value -> m Integer Source #

Use with requireWhere to read Integer values.

floating :: (Data k, MonadThrow m) => k -> Value -> m Double Source #

Use with requireWhere to read Double values.

boolean :: (Data k, MonadThrow m) => k -> Value -> m Bool Source #

Use with requireWhere to read Bool values.