incipit: A Prelude for Polysemy

[ library, prelude ] [ Propose Tags ]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.2.0.0, 0.2.1.0, 0.3.0.0, 0.3.1.0, 0.4.0.0, 0.5.0.0, 0.6.0.0, 0.6.1.0, 0.7.0.0, 0.8.0.0, 0.9.0.0, 0.9.0.1 (info)
Change log changelog.md
Dependencies base (>=4 && <5), incipit-core (==0.1.0.2), polysemy-conc (>=0.5), polysemy-log (>=0.5), polysemy-resume (>=0.3), polysemy-time (>=0.3) [details]
License BSD-2-Clause-Patent
Copyright 2022 Torsten Schmits
Author Torsten Schmits
Maintainer haskell@tryp.io
Category Prelude
Home page https://github.com/tek/incipit#readme
Bug tracker https://github.com/tek/incipit/issues
Source repo head: git clone https://github.com/tek/incipit
Uploaded by tek at 2022-02-24T13:53:50Z
Distributions
Reverse Dependencies 4 direct, 16 indirect [details]
Downloads 673 total (34 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for incipit-0.1.0.2

[back to package description]

About

This library provides a Prelude for Polysemy libraries, building upon incipit-base and exporting most of Polysemy's core modules as well as a number of basic libraries:

For a minimal variant that only exports Polysemy, consider incipit-core.

Usage

incipit exports Prelude, so in order to use it you only have to hide Prelude from base:

For hpack:

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

For cabal:

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

Custom Prelude

In order to extend incipit with a local Prelude, the module Incipit has to be reexported and incipit's Prelude needs to be hidden:

dependencies:
  - name: base
    version: '>= 4 && < 5'
    mixin:
      - hiding (Prelude)
  - name: incipit
    version: >= 0.1
    mixin:
      - hiding (Prelude)
module Prelude (
  module Prelude,
  module Incipit,
) where

import Incipit

projectName :: Text
projectName =
  "spaceship"