incipit-base

A Prelude for Polysemy – Base Reexports

https://github.com/tek/incipit-core#readme

Version on this page:0.5.1.0@rev:1
LTS Haskell 22.19:0.5.1.0@rev:1
Stackage Nightly 2024-04-29:0.6.0.0
Latest on Hackage:0.6.0.0

See all snapshots incipit-base appears in

BSD-2-Clause-Patent licensed by Torsten Schmits
Maintained by [email protected]
This version can be pinned in stack with:incipit-base-0.5.1.0@sha256:4c26319851bdd7a080fda70e6773153eb983c5b7ff7563585cfe0547c5ee5dfb,3845
Used by 2 packages in lts-22.17(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

Unreleased

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.