incipit-core: A Prelude for Polysemy

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

Modules

[Index] [Quick Jump]

  • 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
      • Merge
        • Data.Map.Merge.Lazy
        • Data.Map.Merge.Strict
      • 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
  • Incipit
  • IncipitCore

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.2.0.0, 0.3.0.0, 0.4.0.0, 0.4.1.0, 0.5.0.0, 0.5.1.0, 0.6.0.0, 0.6.1.0 (info)
Change log changelog.md
Dependencies base (>=4.16.4.0 && <4.21), incipit-base (==0.6.1.0), polysemy (>=1.6.0.0 && <1.10) [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-core#readme
Bug tracker https://github.com/tek/incipit-core/issues
Source repo head: git clone https://github.com/tek/incipit-core
Uploaded by tek at 2024-10-12T00:07:37Z
Distributions LTSHaskell:0.6.1.0, NixOS:0.5.1.0, Stackage:0.6.1.0
Reverse Dependencies 10 direct, 23 indirect [details]
Downloads 1342 total (52 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-core-0.6.1.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. For a more comprehensive variant that includes some basic libraries, consider incipit.

Usage

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

For hpack:

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

For cabal:

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

incipit-core used to export Prelude, but stack can't deal with that.

Custom Prelude

In order to extend incipit-core with a local Prelude, the module IncipitCore has to be reexported:

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

import IncipitCore

projectName :: Text
projectName =
  "spaceship"