
24 Feb
2017
24 Feb
'17
7:08 a.m.
I think the usefulness of numeric / string literals as pattern matches is as part of larger matches (as someone mentioned), not by itself. But since (I assume) these things are defined recursively, it makes sense just to add it as a base-level pattern match. Furthermore, you would not want ``` main = let 1 = 2 in print "foo" ``` to error, since the pattern match is unused, and haskell is a lazy language. Really, though, we probably shouldn't be putting incomplete pattern matches in our code :P --Taeer