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
Hi, I’m wondering if it’d make sense to have a special handling for Booleans in GFromForm like we have for Maybe. It’d make sense to write an instance that parses like Maybe but @Text and then fmaps with isJust st a checkbox can be recognised without checking their value or encoding it as Maybe Text on the Backend. Perhaps a newtype like “CheckBoxParam” or something with the same name that’s isomorphic to Bool would be worthwhile as well?
The text was updated successfully, but these errors were encountered:
MangoIV
changed the title
GFromForm for Bo
GFromForm for Bool
Sep 8, 2023
Hi, I’m wondering if it’d make sense to have a special handling for Booleans in GFromForm like we have for Maybe. It’d make sense to write an instance that parses like
Maybe
but@Text
and then fmaps with isJust st a checkbox can be recognised without checking their value or encoding it as Maybe Text on the Backend. Perhaps a newtype like “CheckBoxParam” or something with the same name that’s isomorphic to Bool would be worthwhile as well?The text was updated successfully, but these errors were encountered: