Copyright | (c) Guru Devanla 2018 |
---|---|
License | MIT |
Maintainer | grdvnl@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
This module provides an easy way to explore input files that may have numerous columns by helping create a Record types by guessing the types. That information can be used as is or persisted to a file so that other customizations can be performed.
- makeField :: ByteString -> Type -> String -> (Name, Bang, Type)
- makeFields :: Vector (ByteString, Type) -> String -> Vector (Name, Bang, Type)
- makeRecord :: String -> Vector (Name, Bang, Type) -> DecsQ
- createRecords :: ByteString -> DecodeOptions -> (Header, Vector NamedRecord)
- inferColumnType :: ByteString -> Vector ByteString -> (ByteString, Type)
- isInteger :: String -> Bool
- isDouble :: String -> Bool
- isNumeric :: String -> Bool
- isBool :: String -> Bool
- data Empty = Empty
- maybeType :: Name -> Type
- inferMajorityType :: Vector ByteString -> Type
- collectColumns :: ByteString -> Vector NamedRecord -> Vector ByteString
- inferTypes :: Header -> Vector NamedRecord -> String -> Vector (Name, Bang, Type)
Documentation
makeField :: ByteString -> Type -> String -> (Name, Bang, Type) Source #
Create a field name and type tuple that will be used with RecC to create a Record.
createRecords :: ByteString -> DecodeOptions -> (Header, Vector NamedRecord) Source #
inferColumnType :: ByteString -> Vector ByteString -> (ByteString, Type) Source #
inferMajorityType :: Vector ByteString -> Type Source #
collectColumns :: ByteString -> Vector NamedRecord -> Vector ByteString Source #