[GHC] #9499: Add -prelude-is flag
GHC
ghc-devs at haskell.org
Tue Jun 2 18:39:20 UTC 2015
#9499: Add -prelude-is flag
-------------------------------------+-------------------------------------
Reporter: agibiansky | Owner: agibiansky
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.9
Resolution: | Keywords: flag
Operating System: Unknown/Multiple | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: #9590 | Blocking:
| Differential Revisions: Phab:D171
-------------------------------------+-------------------------------------
Comment (by rwbarton):
Agree with hvr's comments.
An quick-and-dirty hack that also works (I don't entirely understand why
it works, but it does) is just to add a file `Prelude.hs` to your project
consisting of
{{{
module Prelude (module My.Fancy.Prelude) where
import My.Fancy.Prelude
}}}
Apparently this overrides the Prelude module from base for the scope of
your project, even for the implicit Prelude import in modules that don't
have an explicit one.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9499#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list