Unknown option -XPatternSig used in warning

2007-09-19 Thread Bas van Dijk
Hello, $ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.7.20070915 When loading the following incorrect program in ghci: foo (x :: a) = x ghci rightly complains: Illegal signature in pattern: a Use -XPatternSigs to permit it OK so I follow the advice and

RE: Unknown option -XPatternSig used in warning

2007-09-19 Thread Simon Peyton-Jones
-users@haskell.org | Subject: Unknown option -XPatternSig used in warning | | Hello, | | $ ghc --version | The Glorious Glasgow Haskell Compilation System, version 6.7.20070915 | | | When loading the following incorrect program in ghci: | | foo (x :: a) = x | | ghci rightly complains: | | Illegal

Re: Unknown option -XPatternSig used in warning

2007-09-19 Thread Bas van Dijk
On 9/19/07, Simon Peyton-Jones [EMAIL PROTECTED] wrote: I believe this is a known problem with OPTIONS_GHC, and will work on the command line. I think Ian is working on it. Ian? Via the command line I get the same problem: $ ghci -XPatternSigs PatternSig.hs GHCi, version 6.7.20070915:

Re: Unknown option -XPatternSig used in warning

2007-09-19 Thread kahl
| Illegal signature in pattern: a | Use -XPatternSigs to permit it | I am very happy to see that it doesn't recommend -fglasgow-exts anymore! However, I still would prefer Use LANGUAGE pragma with extension ``PatternSigs'' to permit it since it points out even more

Re: Unknown option -XPatternSig used in warning

2007-09-19 Thread Claus Reinke
Via the command line I get the same problem: $ ghci -XPatternSigs PatternSig.hs GHCi, version 6.7.20070915: http://www.haskell.org/ghc/ :? for help ghc-6.7.20070915: unrecognised flags: -XPatternSigs Usage: For basic information, try the `--help' option. $

Re: Unknown option -XPatternSig used in warning

2007-09-19 Thread Bas van Dijk
On 9/19/07, Simon Peyton-Jones [EMAIL PROTECTED] wrote: ...I'll push a fix. Thanks! It works now: $ ghci -XPatternSignatures PatternSig.hs GHCi, version 6.9.20070919: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. [1 of 1] Compiling Main (

Re: Unknown option -XPatternSig used in warning

2007-09-19 Thread Bas van Dijk
On 9/19/07, Wolfgang Jeltsch [EMAIL PROTECTED] wrote: You should use {-# LANGUAGE PatternSigs #-} That should be: {-# LANGUAGE PatternSignatures #-} It would indeed be better if GHC could print Use LANGUAGE pragma with extension... like Wolfram mentioned. Bas

Re: Unknown option -XPatternSig used in warning

2007-09-19 Thread Ian Lynagh
Hi Wolfram, On Wed, Sep 19, 2007 at 01:45:00PM -, [EMAIL PROTECTED] wrote: By the way, some of my LANGUAGE pragmas are getting quite long, and last time I tried I was not allowed to have a line break in there. What version of GHC are you using? This works in 6.6: {-# LANGUAGE