dataframe-th-2.2.0.0: Record-based Template Haskell splices for the dataframe ecosystem.
LicenseMIT
Safe HaskellNone
LanguageHaskell2010

DataFrame.TH.Records

Description

Record-based DataFrame splices — the IO-agnostic core of the TH family. Splices that read CSV / Parquet files at compile time live in DataFrame.TH.CSV (in dataframe-csv-th) and DataFrame.TH.Parquet (in dataframe-parquet-th).

Synopsis

Declare one binding per column

declareColumns :: DataFrame -> DecsQ Source #

Splice a binding for every column of df, named after the column. Column names that are not valid Haskell identifiers are sanitized (see sanitize).

declareColumnsWithPrefix :: Text -> DataFrame -> DecsQ Source #

Like declareColumns but prefixes every binding name with prefix_.

Type-string parser (exposed for testing)