[GHC] #5572: factorial.hs:3:12: Parse error in pattern: n + 1
GHC
cvs-ghc at haskell.org
Fri Oct 21 21:54:16 CEST 2011
#5572: factorial.hs:3:12: Parse error in pattern: n + 1
-------------------------+--------------------------------------------------
Reporter: francisco | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: GHCi | Version: 7.0.3
Resolution: invalid | Keywords:
Testcase: | Blockedby:
Difficulty: | Os: Linux
Blocking: | Architecture: x86
Failure: GHCi crash |
-------------------------+--------------------------------------------------
Comment(by daniel.is.fischer):
You either pass it on the command line, or put it in a language pragma at
the top of your file
{{{
$ ghci -XNPlusKPatterns factorial.hs
or
factorial.hs:
-- comments maybe
{-# LANGUAGE NPlusKPatterns #-}
module Main where
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5572#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list