[Drop the idea of writing a pattern interpreter. Bryan O'Sullivan **20070619080042 Instead, pose it as an exercise. ] { hunk ./en/ch07-globs-and-regexps.xml 23 - library. We'll then write an interpreter for the pattern language - directly, so that we can avoid the regular expression library. - Along the way, we'll talk a little about writing portable code in - Haskell. + library. Along the way, we'll talk a little about writing portable + code, good API design, and constructing code from small building + blocks. hunk ./en/ch07-globs-and-regexps.xml 990 + + + Exercises + + + + Glob patterns are simple enough to interpret that it's + easy to write a matcher directly in Haskell, rather than + going through the regexp machinery. Give it a try. + + + + }