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
data Person = Person
{ name :: String
, age :: Int }
instance FromForm Person where
fromForm (Form m) = Person
<$> parseUnique "name" m
<*> parseUnique "age" m
Form m should just be m.
The text was updated successfully, but these errors were encountered:
Thanks! I wish I could make those code samples to be compiled (like with doctest) while keeping it looking nice (e.g. compared to doctest's multiline input). Do you know of a way?
This example from the docs is off:
Form m
should just bem
.The text was updated successfully, but these errors were encountered: