Ticket #2477 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

-package-conf flag makes runghc fail

Reported by: fons Owned by: igloo
Priority: normal Milestone: 6.10.1
Component: Documentation Version: 6.8.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I haven't been able to test this with 6.8.3 or HEAD but it seems that runghc doesn't work properly when the -package-conf flag is provided.

echo [] > foo.conf # empty package.conf file
echo 'main = putStrLn "foo"' > Main.hs
runghc -package-conf foo.conf Main.hs # this doesn't work
runghc  Main.hs # this works

Change History

Changed 5 years ago by igloo

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to invalid

You need to tell runghc that foo.conf is a GHC flag, and not the program to run:

$ runghc -package-conf --ghc-arg=foo.conf Main.hs
foo

This certainly works in 6.8.3 (and the HEAD), but I don't remember if this flag was in 6.8.2.

Changed 5 years ago by cjs

  • status changed from closed to reopened
  • resolution invalid deleted
  • version changed from 6.8.2 to 6.8.3
  • component changed from Compiler to Documentation
  • severity changed from normal to minor

This flag is not documented in section 4 of the ghc manual.

Changed 5 years ago by igloo

  • owner set to igloo
  • status changed from reopened to new
  • milestone set to 6.10.1

Changed 5 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Fixed:

Fri Sep 26 13:44:25 BST 2008  Ian Lynagh <igloo@earth.li>
  * Improve runghc docs; fixes trac #2477

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.