
12 Feb
2013
12 Feb
'13
2:36 p.m.
On Tue, Feb 12, 2013 at 11:33 AM, Erik de Castro Lopo
Felipe Almeida Lessa wrote:
+1 for the idea.
+2 for using a custom data type: it's *much* easier to read.
I'm with Felipe on both counts.
Just a casual observations. Using custom types for documentation purposes has some upsides, as we know, but there are also lots of downsides in that you will have to rewrite lots of standard operations (in this case things like fromMaybe, etc). I don't have a hard-and-fast rule, but I tend to try to create new types when they add type safety (although I don't always follow my own advice).