On 7/27/07, Eric Y. Kow [EMAIL PROTECTED] wrote:
Solution #3 No lists, just records (lhs2TeX)
--
Advantages:
very convenient/compact; have to write
(i) Flag type
(ii) Settings record type/GetOpt in one go
(iii) default Settings
easy to
Hi,
Here is a possible two part response. Not literate code, just using
to distinguish code from everything else.
A short answer
==
getFilter = getString f Markdown.pl
where f (Filter s) = Just s
f _ = Nothing
getDateFormat = getString f %B %e, %Y
Neil Mitchell ndmitchell at gmail.com writes:
then lookup, instead of just as the else clause.
Thanks, all. After digesting what was on this thread as I woke up this
morning, I ended up writing something rather close to this.
I have a reusable wrapper around System.Console.GetOpt that adds
To anyone who followed up on this thread (hi!). I have posted the
GetOpt-summary part of my message on the wiki:
http://www.haskell.org/haskellwiki/GetOpt
Please update it with the relevant parts of your followups, and correct
any silliness. Haven't had the time to look, but I'm