You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could add an instance instance (Generic a, …) => SeqIsEval a. This instance would check that every field is strict (is it possible in the generic framework? I expect it is. Though I imagine that it's a little bit of work).
This instance is overlapping, but there is no risk in overlapping instances here: SeqIsEval has trivial evidence, so is automatically coherent. On the other hand, we need to be a little careful with error messages, because the instance will always trigger. It needs to point the user in the right direction if it eventually fails.
The text was updated successfully, but these errors were encountered:
Beautiful! This is all very helpful, thank you. Especially the newtype thing. Newtypes are easy to detect in Generic if I remember correctly, but it's would be quite easy to overlook.
Idea suggested by @Profpatsch on twitter
We could add an instance
instance (Generic a, …) => SeqIsEval a
. This instance would check that every field is strict (is it possible in the generic framework? I expect it is. Though I imagine that it's a little bit of work).This instance is overlapping, but there is no risk in overlapping instances here:
SeqIsEval
has trivial evidence, so is automatically coherent. On the other hand, we need to be a little careful with error messages, because the instance will always trigger. It needs to point the user in the right direction if it eventually fails.The text was updated successfully, but these errors were encountered: