@hackage incipit0.10.0.0

A Prelude for Polysemy

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"