[GHC] #9499: Add -prelude-is flag

GHC ghc-devs at haskell.org
Sun May 24 15:14:39 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 hvr):

 Fwiw, here's a different way how to replace the default `Prelude` with the
 current tooling that would IMO reduce the need for an `-is-prelude`
 option:

   https://github.com/hvr/base-noprelude

 The basic idea is to have `base` sans the `Prelude` module, and then you
 just need to provide the `Prelude` module either locally in the Package,
 or by importing some other package that provides the `Prelude` module.

 For instance, there's the `extended-prelude` package example:

   https://github.com/hvr/base-noprelude/tree/master/examples/extended-
 prelude

 which can be then used simply by setting `build-depends: base-noprelude,
 extended-prelude`

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9499#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list