Opened 7 years ago

Closed 7 years ago

Last modified 6 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: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

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 7 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 7 years ago by igloo

  • Milestone set to 6.8

comment:3 Changed 7 years ago by Isaac Dupree

  • Owner set to Isaac Dupree
  • Status changed from new to assigned

comment:4 Changed 7 years ago by Isaac Dupree

  • Resolution set to fixed
  • Status changed from assigned to closed

Implemented by me, patch applied by Simon PJ.

comment:5 Changed 6 years ago by igloo

  • Milestone changed from 6.8 branch to 6.8.1

comment:6 Changed 6 years ago by simonmar

  • Architecture changed from Unknown to Unknown/Multiple

comment:7 Changed 6 years ago by simonmar

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