Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#1317 closed feature request (fixed)

add warning for the Prelude being imported implicitly

Reported by: Isaac Dupree Owned by: Isaac Dupree
Priority: normal Milestone: 6.8.1
Component: Compiler Version: 6.6.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

For those who don't like the implicit Prelude (but have an existing codebase to work with, or want to stay compatible with Haskell standards). The only ways to keep the warning from triggering, once enabled, are -fno-implicit-prelude/LANGUAGE NoImplicitPrelude, and/or at least one import ... Prelude ... line appearing in the module.

Proposed flag name: -fwarn-implicit-prelude

Proposed "on" status: not even on with -Wall, must be enabled explicitly

Change History (7)

comment:1 Changed 10 years ago by simonpj

Seems plausible to me, and should be easy to implement, so feel free to submit a patch. The guidelines are here; http://hackage.haskell.org/trac/ghc/wiki/WorkingConventions#Howtosubmitapatchforanewfeature.

Thanks

Simon

comment:2 Changed 10 years ago by igloo

Milestone: 6.8

comment:3 Changed 10 years ago by Isaac Dupree

Owner: set to Isaac Dupree
Status: newassigned

comment:4 Changed 10 years ago by Isaac Dupree

Resolution: fixed
Status: assignedclosed

Implemented by me, patch applied by Simon PJ.

comment:5 Changed 9 years ago by igloo

Milestone: 6.8 branch6.8.1

comment:6 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:7 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple
Note: See TracTickets for help on using tickets.