Ticket #1317 (closed feature request: fixed)

Opened 6 years ago

Last modified 5 years ago

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

Changed 6 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

Changed 6 years ago by igloo

  • milestone set to 6.8

Changed 6 years ago by Isaac Dupree

  • owner set to Isaac Dupree
  • status changed from new to assigned

Changed 6 years ago by Isaac Dupree

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

Implemented by me, patch applied by Simon PJ.

Changed 6 years ago by igloo

  • milestone changed from 6.8 branch to 6.8.1

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.