Skip to content

Instantly share code, notes, and snippets.

@fredefox
Created May 29, 2019 22:19
Show Gist options
  • Save fredefox/79e8bcae045eada98934df88bdad7783 to your computer and use it in GitHub Desktop.
Save fredefox/79e8bcae045eada98934df88bdad7783 to your computer and use it in GitHub Desktop.
data U = U Int Int Int
u :: U
u = convertResults (take 3 $ repeat aField) $ Just <$> ["0","1","2"]
deriving stock instance Generic U
deriving stock instance Show U
deriving anyclass instance QueryResults U
data T = T Int Int Int Int Int Int
deriving stock instance Generic T
deriving stock instance Show T
deriving anyclass instance QueryResults T
aField = Field mempty mempty mempty mempty mempty mempty mempty 0 0 mempty 0 0 Short
t :: T
t = convertResults (take 6 $ repeat aField) $ Just <$> ["0","1","2","3","4","5"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment