[Haskell-beginners] [Haskell] Newbie

Brandon Allbery allbery.b at gmail.com
Fri Mar 8 01:56:22 CET 2013

On Thu, Mar 7, 2013 at 7:45 PM, Dan Lior <sitiposit at gmail.com> wrote:

> 1) Is this the right place for newbies to post questions about Haskell?

This is most a list for announcements; beginners at haskell.org is better for
these kinds of questions, and haskell-cafe at haskell.org for general

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

n+k patterns were part of Haskell '98, but removed from Haskell 2010. You
may be able to use the pragma

    {-# LANGUAGE NPlusKPatterns #-}

to turn them back on.

brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130307/cf8372ef/attachment.htm>

More information about the Beginners mailing list