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 Mul
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
__
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 ( Pa
Am Mittwoch, 19. September 2007 14:20 schrieb Bas van Dijk:
> […]
> {-# OPTIONS_GHC -XPatternSigs #-}
You should use {-# LANGUAGE PatternSigs #-}
> […]
Best wishes,
Wolfgang
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http
l.org
| Subject: Re: Unknown option -XPatternSig used in warning
|
| > 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
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.
$ /cygdrive/c/fptools/ghc/compiler/s
>
> | 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 mor
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: h
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?
Simon
| -Original Message-
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
| Behalf Of Bas van Dijk
| Sent: 19 September 2007 13:20
| To: glasgow-haskell-use