Your message dated Fri, 03 Jun 2011 00:14:01 +0200
with message-id <1307052841.26269.20.camel@kirk>
and subject line Works as documented now
has caused the Debian Bug report #458365,
regarding runghc -foption not easy to specify
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
458365: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=458365
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ghc6
Version: 6.6.1-2
Severity: normal

joey@kodama:~>runghc -fno-glasgow-exts foo.hs               
zsh: exit 127   runghc -fno-glasgow-exts foo.hs

Turns out that -f is overloaded to be the path to the ghc program. (Would be
nice if runghc had a man page, BTW.) The above is its way of indicating that
it failed to run "no-glasgow-exts".

So to specify a -f parameter, some contortions are needed. This doesn't work:

runghc -- -fno-glasgow-exts foo.hs

This works, but *yuck*:

runghc -f/usr/bin/ghc -fno-glasgow-exts foo.hs

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ghc6 depends on:
ii  gcc                       4:4.2.2-1      The GNU C compiler
ii  haskell-utils             1.9            Utilities used by the Debian Haske
ii  libc6                     2.7-5          GNU C Library: Shared libraries
ii  libgmp3-dev               2:4.2.2+dfsg-1 Multiprecision arithmetic library 
ii  libgmp3c2                 2:4.2.2+dfsg-1 Multiprecision arithmetic library
ii  libncurses5               5.6+20071215-1 Shared libraries for terminal hand
ii  libreadline5              5.2-3          GNU readline and history libraries
ii  libreadline5-dev          5.2-3          GNU readline and history libraries
ii  perl [perl5]              5.8.8-12       Larry Wall's Practical Extraction 

ghc6 recommends no packages.

-- no debconf information

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Version: 7.0.3-1

Hi Joey,

this now works as documented in the manpage (although its not great):

$ runghc Foo.hs 
Hi
$ runghc -fno-glasgow-exts Foo.hs 
$ runghc -f no-glasgow-exts Foo.hs 
$ runghc -- -f no-glasgow-exts Foo.hs 
ghc: unrecognised flags: -f
Usage: For basic information, try the `--help' option.
$ runghc -- -fno-glasgow-exts Foo.hs 

on the commandline:
    Warning: -fno-glasgow-exts is deprecated: Use individual extensions instead
Hi

Greetings,
Joachim


-- 
Joachim "nomeata" Breitner
Debian Developer
  [email protected] | ICQ# 74513189 | GPG-Keyid: 4743206C
  JID: [email protected] | http://people.debian.org/~nomeata

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply via email to