[Haskell] Newbie

Dan Lior sitiposit at gmail.com
Fri Mar 8 01:45:59 CET 2013


Hello, 

I'm new to Haskell and this is my first post to this forum. 

A few questions right off the bat:

1) Is this the right place for newbies to post questions about Haskell?
2) Is there a FAQ for Haskell questions? 
3) Are there any active Haskell user groups in the Chicago area?

A more technical question:

I'm messing around with basic Haskell examples on eclipse using the FP add-on running over GHC. 

The following code works:

pred :: Int -> Int
pred 0 = 0
pred n = n-1

The following code doesn't:

pred :: Int -> Int
pred 0 = 0
pred n+1 = n


Does anyone know why this might be? 

"Thanks" and "I apologize" in advance. 

dan





More information about the Haskell mailing list