@hackage incipit0.11.0.0
A Prelude for Polysemy
Installation
Dependencies (6)
- base >=4.17.2.1 && <4.22
- incipit-core >=0.4.1.0 && <0.8
- polysemy-conc >=0.12.1.0 && <0.16
- polysemy-log >=0.4.0.0 && <0.12
- polysemy-resume >=0.7.0.0 && <0.10
- polysemy-time >=0.6.0.0 && <0.8 Show all…
Dependents (4)
@hackage/prelate, @hackage/helic, @hackage/polysemy-http, @hackage/zeugma
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"