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
I don't have an inherit objection to adding support for type level literals, just a vague concern that the error messages could end up being confusing for users. Want to take a stab at a PR to generalize the parser here?
e.g. If you try to do
you're met with an error like
Invalid field type "Finite 2001" PSFail ('2',"001")
.This is an artifact of https://github.com/yesodweb/persistent/blob/master/persistent/Database/Persist/Quasi.hs#L63 and not any fundamental limitation.
type Twenty = 20
works fine as a workaround.The text was updated successfully, but these errors were encountered: