http-api-data
http-api-data copied to clipboard
GFromForm for Bool
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?