BSD-2-Clause-Patent licensed by Torsten Schmits
Maintained by [email protected]
This version can be pinned in stack with:incipit-base-0.6.0.0@sha256:9747c4c99248f879faa1b7f113a838e64cdab3e9fe22c733735b72eca17f6c8e,3110
Used by 2 packages in nightly-2024-03-29(full list with versions):

About

This library is part of incipit, a set of Prelude modules for the Polysemy ecosystem. It contains the reexports from base that are inherited by the other two packages.

Usage

Using a custom Prelude requires the use of Cabal mixins to hide the module from base and replace it with IncipitBase:

For hpack:

dependencies:
  - name: base
    version: '>= 4 && < 5'
    mixin:
      - hiding (Prelude)
  - name: incipit-base
    version: '>= 0.3'
    mixin:
      - (IncipitBase as Prelude)
      - hiding (IncipitBase)

For cabal:

build-depends:
    base >=4 && <5, incipit-base >= 0.3
mixins:
    base hiding (Prelude), incipit-base (IncipitBase as Prelude), incipit-base hiding (IncipitBase)

incipit-base used to export Prelude, but stack can’t deal with that.

Changes

0.6.0.0

  • Add polymorphic type family Undefined that emits a TypeError.

0.5.0.0

  • Add type error concatenation families from type-errors-pretty.

0.4.0.0

  • Add safe versions of Foldable.minimum et al.
  • Export showsPrec, showParen, showString.

0.3.0.0

  • Add safe versions of Fractional division methods.
  • Add fromText.
  • Remove module exports for Prelude to avoid a Stack bug.
  • Rename Incipit modules to IncipitBase and IncipitCore.
  • Export withFrozenCallStack.
  • Add leftA, an Either combinator that runs an applicative action on a Left.

0.2.0.0

  • Add safe, Maybe returning, versions of the methods of Integral.
  • Hide constructors of effect GADTs.
  • Reexport Data.Text.Lazy.Builder.