Fun with Haskell view patterns
Posted in haskell on January 11th, 2009 5 Comments »
One of the pleasant new features in GHC 6.10 is the long-awaited addition of view patterns. This feature is usually advertised as making it possible to pattern match against the values of an abstract type. An essential aspect of modular software design is that we don't want to expose the implementation of complex code. Someone [...]
