Created
May 29, 2019 22:19
-
-
Save fredefox/79e8bcae045eada98934df88bdad7783 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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