Add nullableToMaybeFields
tomjaguarpaw opened this issue · comments
We don't seem to have nullableToMaybeFields :: FieldNullable a -> MaybeFields (Field a)
. Add it.
N.B. it shouldn't need an SqlType a
constraint. Something like the following should work
nullableToMaybeFields x = MaybeFields (not (isNull x)) (unsafeCoerceColumn x)
Needed for, e.g. #541