List syntax (was: Re: help from the community?)
Bulat Ziganshin
bulat.ziganshin at gmail.com
Sat Feb 3 08:09:40 EST 2007
Hello Brian,
Saturday, February 3, 2007, 10:55:52 AM, you wrote:
> bracket_
> (enter a)
> (exit a)
> (do
> b
> c) -- looks like LISP...
this pattern is very typical in my programs and i use '$' before last
parameter:
postProcess_wrapper command $ \postProcess_processDir deleteFiles -> do
tempfile_wrapper arcname command deleteFiles pretestArchive $ \temp_arcname -> do
bracket (archiveCreateRW temp_arcname) (archiveClose) $ \archive -> do
...
...
for compressionOptions $ \option -> case option of
'd':rest | Just md <- parseDict rest -> dict =: md
....
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-prime
mailing list