-
Notifications
You must be signed in to change notification settings - Fork 34
Losing type safety should be emphasized #97
Comments
Yeah, it should be explained more precisely. #83 would improve this but there is a long way to go, so I'll improve the README. |
Besides #83, there is another issue about type safety, namely, if you write:
in a validate function, the code compiles, but the last two checks won't have any effect, they fail silently, you have to group the three checks together and then pass it to |
Okey, I've made it a bit more explicit in the README, and mentioned this issue. |
Has anyone tried fixing this using Lens keys? type alias Something =
{ id : Int
, name : String
, address : Address -- Assuming an address can be represented as a string input.
} What I haven't figured out yet is... type alias SomethingWithExtraInfo =
{ id : Int
, name : String
, address : Address
, emails : List Email -- Where each email would be it's own form...
} I feel like this is just a serialization problem but I'm starting to get a bunch of |
In the README.md, there is a line
I think this should be emphasized with bold font, since it's very important when choosing a library.
The text was updated successfully, but these errors were encountered: