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? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
If you have a
Rel8ablelike:Then the argument passed to
namesFromLabelsWithwill contain things like["foo1", "a"],["foo1", "b"],["foo2", "a"],["foo2", "b"].