Prelude
A Prelude module replacement
This package provides a "Prelude" module drop-in replacement for [base](https://hackage.haskell.org/package/base)'s @Prelude@ module.
Goals of this package include:
* Be reasonably modest and remain close in spirit to the @base@ package's scope
* Depend only on @base@ (via @base-noprelude@) for recent GHC versions
* Avoid partial functions being in scope by default; redefine common partial functions such as @read@ or @head@ to be 'Maybe'-valued
* Provide a uniform "Prelude" across multiple GHC releases (currently GHC 7.0 and newer supported) to the extent possible given typeclass restructurings such as AMP or FTP
* Reduce @import@ clutter by reexporting common verbs from modules such as @Control.Monad@ and @Control.Applicative@
=== Versioning and Usage
This package is intended to be used in combination with [base-noprelude](https://hackage.haskell.org/package/base-noprelude) and
possibly [base-orphans](https://hackage.haskell.org/package/base-orphans). @Prelude@ strives to be faithful to
the [PVP](https://pvp.haskell.org/); however, for technical reasons @Prelude@'s API is not fully determined by its version due to changes in core typeclasses and consequently it's strongly advised to declare a dependency on @Prelude@ always in conjunction with a dependency on @base-noprelude@.
For instance, all you need to do in order to use this package if you were previously depending on [base](https://hackage.haskell.org/package/base) via
> build-depends:
> base (>= 4.3.0.0 && < 4.11) || ^>= 4.11.0.0
is to replace @base@ by @base-noprelude@ and also add a dependency on @Prelude@ like so
> build-depends:
> Prelude ^>= 0.1.0.0
> , base-noprelude (>= 4.3.0.0 && < 4.11) || ^>= 4.11.0.0
and this will effectively replace the implicit "Prelude" module.
Alternatively, if you only intend to support GHC 7.10 and newer, you can make use @mixins@ like so
> build-depends:
> Prelude ^>= 0.1.0.0
> , base (>= 4.8.0.0 && < 4.12) || ^>= 4.12.0.0
>
> mixins: base hiding (Prelude)
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.1.0.1 | 2018-08-29 17:01 UTC | HerbertValerioRiedel | 1 revisions | +25/−14 lines, 2 filesdep +basedep −base-nopreludePVP ok |
| 0.1.0.0 | 2018-08-25 18:26 UTC | HerbertValerioRiedel | +420/−0 lines, 4 filesdep +base-nopreludedep +faildep +ghc-primsetup-changed |
Dependencies of Prelude-0.1.0.1
base >=4.3 && <4.14 4.13.0.0 → 4.22.1.0 newer than bounds
| 2026-12-01 12:38 UTC | 4.22.1.0 newer than bounds | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 newer than bounds | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 newer than bounds | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 newer than bounds | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 newer than bounds | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
fail >=4.9 && <4.10 (empty) → 4.9.0.0
| 2016-01-21 15:11 UTC | 4.9.0.0 | +144/−0 lines, 4 filesdep +basesetup-changed |
ghc-prim >=0.2 && <0.3 0.12.0 → 0.13.0 newer than bounds
| 2024-12-16 09:29 UTC | 0.13.0 newer than bounds | +95/−12 lines, 6 filesPVP ok |
| 2025-05-03 11:48 UTC | 0.12.0 newer than bounds | +5108/−1582 lines, 15 filesnew-uploaderPVP ok |
| 2023-10-10 00:24 UTC | 0.11.0 newer than bounds | +770/−234 lines, 9 filesPVP ok |
| 2023-03-28 14:22 UTC | 0.10.0 newer than bounds | +487/−297 lines, 16 filesPVP ok |
| 2022-08-07 20:08 UTC | 0.9.0 newer than bounds | +2921/−2018 lines, 14 filesPVP ok |
showing 5 of 15 versions
semigroups >=0.18.5 && <0.19 0.18.5 → 0.20.1 newer than bounds
| 2026-01-10 20:32 UTC | 0.20.1 newer than bounds | +29/−2103 lines, 6 filesdep −binarydep −bytestringdep −bytestring-builderdep ~basePVP: major bump suggested |
| 2021-11-16 00:07 UTC | 0.20 newer than bounds | +9/−27 lines, 3 filesdep ~hashablePVP ok |
| 2021-08-30 11:23 UTC | 0.19.2 newer than bounds | +45/−203 lines, 6 filesdep ~hashablePVP ok |
| 2019-08-27 13:06 UTC | 0.19.1 newer than bounds | +100/−60 lines, 5 filesdep ~hashabledep ~transformersPVP ok |
| 2019-05-10 13:57 UTC | 0.19 newer than bounds | +217/−167 lines, 5 filesdep +template-haskelldep ~hashablePVP ok |
showing 5 of 65 versions
transformers >=0.3.0.0 && <0.6 0.5.6.2 → 0.6.3.0 newer than bounds
| 2026-01-12 12:42 UTC | 0.6.3.0 newer than bounds | +28/−1 lines, 4 filesPVP: major bump suggested |
| 2025-04-06 22:39 UTC | 0.6.2.0 newer than bounds | +41/−42 lines, 8 filesdep ~ghc-primPVP: major bump suggested |
| 2024-09-25 11:37 UTC | 0.6.1.2 newer than bounds | +70/−21 lines, 19 filesPVP: minor bump suggested |
| 2023-08-01 19:13 UTC | 0.6.1.1 newer than bounds | +281/−42 lines, 11 filesPVP ok |
| 2023-02-04 08:15 UTC | 0.6.1.0 newer than bounds | +64/−4 lines, 8 filesPVP ok |
showing 5 of 42 versions
Reverse dependencies
2 packages depend on Prelude