> If you have time to restructure this, I'd appreciate it. Perhaps the
> lambda expression should become a standalone function with a set of
> guarded patterns? But if not, I'll just commit it as it stands.
Juliusz,
Thanks again for your comments. I'm not entirely sure if this is what
you are looking for, but I did something like this:
safeFileChar :: Char -> Char
safeFileChar c | Char.isAlpha c = Char.toLower c
| Char.isDigit c = c
safeFileChar _ = '-'
patch_filename :: String -> String
patch_filename summary = name ++ ".dpatch"
where name = map safeFileChar summary
Is that closer? If not, what should I modify? Be as picky as you'd
like, it's worth the extra effort to keep the Darcs code clean.
--
Zachary P. Landau <[EMAIL PROTECTED]>
_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel