incipit: A Prelude for Polysemy

[ library, prelude ] [ Propose Tags ] [ Report a vulnerability ]

Modules

[Index] [Quick Jump]

  • Conc
  • Control
    • Concurrent
      • Control.Concurrent.STM
        • Control.Concurrent.STM.TArray
        • Control.Concurrent.STM.TBQueue
        • Control.Concurrent.STM.TChan
        • Control.Concurrent.STM.TMVar
        • Control.Concurrent.STM.TQueue
        • Control.Concurrent.STM.TSem
        • Control.Concurrent.STM.TVar
    • Monad
      • Control.Monad.STM
  • Data
    • Data.ByteString
      • Data.ByteString.Builder
      • Data.ByteString.Lazy
      • Data.ByteString.Short
    • IntMap
      • Data.IntMap.Lazy
      • Data.IntMap.Strict
    • Data.IntSet
    • Map
      • Data.Map.Lazy
      • Data.Map.Strict
    • Data.Sequence
    • Data.Set
    • Data.Text
      • Data.Text.IO
      • Data.Text.Lazy
        • Data.Text.Lazy.Builder
        • Data.Text.Lazy.IO
      • Data.Text.Read
    • Data.Tree
  • Gate
  • Incipit
  • Log
  • Polysemy
    • Polysemy.Conc
      • Polysemy.Conc.Queue
      • Polysemy.Conc.Sync
    • Polysemy.Log
    • Polysemy.Resume
    • Polysemy.Time
  • Queue
  • Sync
  • Time

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, 0.10.0.0 (info)
Change log changelog.md
Dependencies base (>=4.17.2.1 && <4.20), incipit-core (>=0.4.1.0 && <0.7), polysemy-conc (>=0.11.1.0 && <0.15), polysemy-log (>=0.4.0.0 && <0.12), polysemy-resume (>=0.5.0.0 && <0.10), polysemy-time (>=0.5.1.0 && <0.8) [details]
License BSD-2-Clause-Patent
Copyright 2023 Torsten Schmits
Author Torsten Schmits
Maintainer hackage@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 2024-05-31T00:18:17Z
Distributions
Reverse Dependencies 4 direct, 16 indirect [details]
Downloads 957 total (18 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.10.0.0

[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"