@hackage incipit0.2.0.0
A Prelude for Polysemy
Installation
Dependencies (6)
- base >=4 && <5
- incipit-core ==0.2.0.0
- polysemy-conc >=0.7
- polysemy-log >=0.6.0.1
- polysemy-resume >=0.4
- polysemy-time >=0.4 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"