Hacker News new | ask | show | jobs
by Peaker 4903 days 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)
1 comments

The 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.
Well, it isn't the case here, is it?