Closed tomjaguarpaw closed 2 years ago
We don't seem to have nullableToMaybeFields :: FieldNullable a -> MaybeFields (Field a). Add it.
nullableToMaybeFields :: FieldNullable a -> MaybeFields (Field a)
N.B. it shouldn't need an SqlType a constraint. Something like the following should work
SqlType a
nullableToMaybeFields x = MaybeFields (not (isNull x)) (unsafeCoerceColumn x)
Needed for, e.g. https://github.com/tomjaguarpaw/haskell-opaleye/issues/541
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