Skip to content

Instantly share code, notes, and snippets.

@kozross
Created July 22, 2018 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kozross/980e49559cf2be6866dd2c4e3e92e7bd to your computer and use it in GitHub Desktop.
Save kozross/980e49559cf2be6866dd2c4e3e92e7bd to your computer and use it in GitHub Desktop.
import qualified Data.Vector.Unboxed as V
data Categorical = -- some definition of a type here
data Discrete = -- some definition of a type here
data Continuous = -- some definition of a type here
type family ColumnData a where
ColumnData Categorical = V.Vector Word32
ColumnData Discrete = V.Vector Int32
ColumnData Continuous = V.Vector Float
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment