Prelude -package:stack -is:module

Not on Stackage, so not searched. A Prelude module replacement
the standard table of Macros used to compile REs (which can be extended or replace: see Text.RE.TestBench)
an enumeration of all of the prelude macros
All fixities defined in the Prelude.
Provide Prelude and Data.List with fixed content across GHC versions This package allows you to write warning-free code that compiles with versions of base before and after AMP and FTP, that is, base before and beginning with 4.8, respectively, and GHC before and beginning with 7.10, respectively. It serves three purposes:
  • Prevent you from name clashes of FTP-Prelude with locally defined functions having names like <*>, join, foldMap.
  • Prevent you from redundant import warnings if you manually import Data.Monoid or Control.Applicative.
  • Fix list functions to the list type, contrarily to the aim of the FTP. This way you are saved from length (2,1) == 1 and maximum (2,1) == 1, until you import Data.Foldable.
You should add
import Prelude2010
import Prelude ()
to your modules. This way, you must change all affected modules. If you want to avoid this you may try the prelude2010 package or if you already import Prelude explicitly, you may try to add
Default-Extensions: CPP, NoImplicitPrelude
CPP-Options: -DPrelude=Prelude2010
to your Cabal file. In my opinion, this is the wrong way round. The presented Prelude2010 module should have been the one for GHC-7.10 and the Prelude with added and generalized list functions should have been an additional PreludeFTP, preferably exported by a separate package like all other alternate Prelude projects. But the purpose of the FTP was to save some import statements at the expense of blowing up the Foldable class and prevent simple ways to write code that works with GHC version before and starting with GHC-7.10 and that does not provoke warnings. Related packages:
  • 'base-compat': The opposite approach - Make future function definitions available in older GHC versions.
  • haskell2010: Defines the Prelude for Haskell 2010. Unfortunately, haskell2010 is not available anymore since GHC-7.10, because of the AMP.
  • 'numeric-prelude': It is intended to provide a refined numeric class hierarchy but it also provides a non-numeric subset of the Prelude that is more stable than the one of base.
the standard MacroEnv for this back end (see Text.RE.TestBench)
the prelude source of a given macro in the standard environment
a listing of the RE text for each macro in the standard environment with all macros expanded to normal form
a summary of the macros in the standard environment for this back end in plain text
a table the standard macros in markdown format
the macros in the standard environment that are failing their tests (checked by the test suite to be empty)
generate the MacroEnv for the standard prelude macros
generate plain text giving the expanded RE for a single macro
generate a plain text table giving the RE for each macro with all macros expanded (to NF)
generate a textual summary of the prelude macros
format the standard prelude macros in a markdown table
generate the standard prelude Macros used to parse REs
A list of reified Name instances for an arbitrary selection of types from the Haskell Prelude.
Part of the lexer prelude needed when string literals are to be lexed. Defines an interface to the Buffer.