20 Jan
                
                    2012
                
            
            
                20 Jan
                
                '12
                
            
            
            
        
    
                12:16 a.m.
            
        Antoine,
You're running into the monomorphism restriction: http://www.haskell.org/haskellwiki/Monomorphism_restriction
Oh. Thanks.
You can also turn off the restriction at the command-line with the argument '-XNoMonomorphismRestriction', I think.
I will use "ghci -XNoMonomorphismRestriction" in my tutorial. Thank you again. --Kazu