What does the NonEmpty String list contain in namesFromLabelsWith?
#279
|
Function namesFromLabelsWith takes as argument a function that receives a I have fiddled with this function in a REPL but I always get back a list of exactly 1 element. Can you explain (and ideally, add to the function documentation) what this list may contain, besides the last element always being the Haskell field name? |
Answered by
shane-circuithub
Oct 6, 2023
Replies: 1 comment 4 replies
|
If you have a data Foo f = Foo
{ a :: Column f Bool
, b :: Column f Char
}
deriving (Generic, Rel8able)
data Bar f = Bar
{ foo1 :: Foo f
, foo2 :: Foo f
}
deriving (Generic, Rel8able)Then the argument passed to |
4 replies
Answer selected by
ocharles
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have a
Rel8ablelike:Then the argument passed to
namesFromLabelsWithwill contain things like["foo1", "a"],["foo1", "b"],["foo2", "a"],["foo2", "b"].