IO and syntax

Ashley Yakeley ashley@semantic.org
Tue, 12 Mar 2002 21:55:43 -0800


At 2002-03-12 20:18, Jyrinx wrote:

>Of course, this "probable cause" is ridiculous at face value ... anyway,
>my code makes as much sense to me as it can at the moment ... how should
>I get it to make sense to GHC? (I couldn't find any examples on

I can see the bug. It's a very common one when using monads and the 'do' 
notation -- confusing 'a' with 'IO a'.

When in doubt, add type signatures to everything. You'll soon narrow it 
down.

-- 
Ashley Yakeley, Seattle WA