dataframe-parsing 2.1.1.0 → 2.2.0.0
raw patch · 2 files changed
+6/−7 lines, 2 filesdep ~dataframe-corePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: dataframe-core
API changes (from Hackage documentation)
- DataFrame.Schema: class RuntimeSchema (cols :: [Type])
+ DataFrame.Schema: class RuntimeSchema (cols :: [(Symbol, Type)])
Files
dataframe-parsing.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.4 name: dataframe-parsing-version: 2.1.1.0+version: 2.2.0.0 synopsis: Shared text/binary parsing helpers for the dataframe ecosystem. description: Parsing primitives used by the @dataframe@ family: CSV-friendly text@@ -45,7 +45,7 @@ bytestring >= 0.11 && < 0.14, bytestring-lexing >= 0.5 && < 0.7, containers >= 0.6.7 && < 0.10,- dataframe-core >= 2.1 && < 2.2,+ dataframe-core >= 2.2 && < 2.3, text >= 2.1 && < 3, time >= 1.12 && < 2, vector >= 0.12 && < 0.15
src/DataFrame/Internal/Schema.hs view
@@ -30,8 +30,7 @@ import qualified Data.Text as T import Data.Type.Equality (TestEquality (..)) import DataFrame.Internal.Column (Columnable)-import DataFrame.Typed.Types (Column)-import GHC.TypeLits (KnownSymbol, symbolVal)+import GHC.TypeLits (KnownSymbol, Symbol, symbolVal) import Type.Reflection (typeRep) -- | A runtime tag for a column’s element type.@@ -104,10 +103,10 @@ ==== __Examples__ >>> :set -XTypeApplications -XDataKinds->>> elements (runtimeSchema @'[Column "n" Int])+>>> elements (runtimeSchema @'[ '("n", Int)]) fromList [("n",Int)] -}-class RuntimeSchema (cols :: [Type]) where+class RuntimeSchema (cols :: [(Symbol, Type)]) where runtimeSchema :: Schema instance RuntimeSchema '[] where@@ -115,7 +114,7 @@ instance (KnownSymbol name, Columnable a, Read a, RuntimeSchema rest) =>- RuntimeSchema (Column name a ': rest)+ RuntimeSchema ('(name, a) ': rest) where runtimeSchema = Schema $