Evan Martin wrote:
I remember reading a tutorial that pointed out that you can often
avoid explicit recusion in Haskell and instead use higher-level
operators.
For your code, I think
drawModals = foldr (flip ()) (return ()) . map drawModal
works(?).
I think it would be foldl so that the
Hello Brian,
Tuesday, May 2, 2006, 3:12:48 AM, you wrote:
-- Prolog style coding...
drawModals :: [Control] - ManagerM ()
drawModals [] = return ()
drawModals (c:cs) = do
drawModals cs
Bulat Ziganshin wrote:
Hello Donald,
Friday, April 28, 2006, 12:29:38 PM, you wrote:
I looked at http://www.haskell.org/haskellwiki/Libraries_and_tools, and
suffice it to say that this page don't reflects current state of the
art. during many years it was not updated and when it was moved
Tomasz Zielonka wrote:
and handle options as functions from Config to Config:
I find this approach very convenient, but I push it a bit further. Some
time ago I wrote a small article about this:
http://www.haskell.org/pipermail/haskell/2004-January/013412.html
[from there]
-- Here
Hi,
it was just published the student application form, you can find it at:
http://code.google.com/soc/student_step1.html
I hope we will be collecting good Haskell applications from students :-)
I am very happy to see how many did signed up on the People page as now:
On Tue, May 02, 2006 at 02:27:28PM +0200, Mirko Rahn wrote:
But how to handle dependencies between options using this technique? I
can image two solutions:
1: Every dependency 'a implies b' has to be checked in both functions,
the one for a and the one for b.
2: An order for the actions has
Ello. I'm looking for a way to interface the Windows API with Haskell
in order to write a Win32 console handler thingy. I don't know
anything about the Haskell Foreign Function Interface beyond what its
name implies and that it's an extension to Haskell 98 (or is it?). So
just where do I start?
Hi,
Pretty much every Haskell implementation supports the FFI - its a
standardised Haskell 98 extension. Take a look at the System.Win32
library which is a wrapper round the Windows API. If you have a
reference to the Win32 API (i.e. MSDN) then the API looks like a very
straightforward wrapper.