packages feed

dataframe-core 1.0.1.0 → 1.0.1.1

raw patch · 3 files changed

+13/−7 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

dataframe-core.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               dataframe-core-version:            1.0.1.0+version:            1.0.1.1  synopsis:           Core data structures for the dataframe library. description:
src/DataFrame/Internal/Hash.hs view
@@ -22,9 +22,10 @@ import qualified Data.Text as T import Data.Word (Word64) --- | FNV-1a 64-bit offset basis (used as the initial accumulator).--- The literal is unsigned and exceeds 'Int' range, so we round-trip through--- 'Word64' to get the well-defined two's-complement bit pattern.+{- | FNV-1a 64-bit offset basis (used as the initial accumulator).+The literal is unsigned and exceeds 'Int' range, so we round-trip through+'Word64' to get the well-defined two's-complement bit pattern.+-} fnvOffset :: Int fnvOffset = fromIntegral (0xcbf29ce484222325 :: Word64) 
src/DataFrame/Typed/Schema.hs view
@@ -44,6 +44,7 @@     LeftJoinSchema,     RightJoinSchema,     FullOuterJoinSchema,+    ToMaybe,     WrapMaybe,     WrapMaybeColumns,     CollidingColumns,@@ -280,10 +281,14 @@     UniqueLeftHelper 'True n a rest rn = UniqueLeft rest rn     UniqueLeftHelper 'False n a rest rn = Column n a ': UniqueLeft rest rn --- | Wrap column types in Maybe.+type family ToMaybe (a :: Type) :: Type where+    ToMaybe (Maybe a) = Maybe a+    ToMaybe a = Maybe a++-- | Wrap column types in Maybe; idempotent on already-optional columns. type family WrapMaybe (cols :: [Type]) :: [Type] where     WrapMaybe '[] = '[]-    WrapMaybe (Column n a ': rest) = Column n (Maybe a) ': WrapMaybe rest+    WrapMaybe (Column n a ': rest) = Column n (ToMaybe a) ': WrapMaybe rest  -- | Wrap selected columns in Maybe by name list. type family WrapMaybeColumns (names :: [Symbol]) (cols :: [Type]) :: [Type] where@@ -301,7 +306,7 @@         [Type]     where     WrapMaybeColumnsHelper 'True n a names rest =-        Column n (Maybe a) ': WrapMaybeColumns names rest+        Column n (ToMaybe a) ': WrapMaybeColumns names rest     WrapMaybeColumnsHelper 'False n a names rest =         Column n a ': WrapMaybeColumns names rest