Ticket #2499 (closed merge: fixed)

Opened 5 years ago

Last modified 5 years ago

OPTIONS pragma silently ignored

Reported by: simonpj Owned by: igloo
Priority: normal Milestone: 6.10.1
Component: Compiler 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

{-# OPTIONS_GHC -package blarg #-}
module Foo where

f x = x

This compiles, but it shouldn't because there is no such package. AND because -package is not an acceptable OPTIONS flag in a module.

Change History

Changed 5 years ago by simonmar

  • owner set to igloo
  • type changed from bug to merge

Fixed:

Tue Sep 23 18:39:04 BST 2008  Simon Marlow <simonmar@microsoft.com>
  * Disallow package flags in OPTIONS_GHC pragmas (#2499)

testsuite:

Tue Sep 23 18:56:20 BST 2008  Simon Marlow <simonmarhaskell@gmail.com>
  * add test for #2499 (package flags in OPTIONS pragmas)

Changed 5 years ago by igloo

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

Merged.

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.