#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
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs