4 ms·
Why not define a type alias? type AppForm a = Html -> MForm Blog Blog (FormResult a, Widget) And then you get: newPostForm :: AppForm (Text, Text, Text)
by Peaker 14y ago
Why not define a type alias?
type AppForm a = Html -> MForm Blog Blog (FormResult a, Widget)
And then you get:
newPostForm :: AppForm (Text, Text, Text)
- svachalek 14y agoThe real fun with type aliases is that GHC rarely uses them in error messages. So you get about 20 lines of type vomit whenever something refuses to compile and then you get to try to piece it back together into a level of abstraction that humans can handle.
- Peaker 14y agoWell, it isn't the case here, is it?