incipit-base 0.1.0.2 → 0.1.0.3
raw patch · 6 files changed
+59/−28 lines, 6 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- incipit-base.cabal +3/−2
- lib/Incipit.hs +25/−0
- lib/Incipit/List.hs +1/−1
- lib/Incipit/Prelude.hs +0/−25
- lib/Prelude.hs +6/−0
- readme.md +24/−0
incipit-base.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: incipit-base-version: 0.1.0.2+version: 0.1.0.3 synopsis: A Prelude for Polysemy – Base Reexports description: See <https://hackage.haskell.org/package/incipit-base/docs/Incipit-Prelude.html> category: Prelude@@ -27,16 +27,17 @@ library exposed-modules:+ Incipit Incipit.Base Incipit.Debug Incipit.Either Incipit.Libraries Incipit.List Incipit.Misc- Incipit.Prelude Incipit.String Incipit.String.Conversion Incipit.String.Reexport+ Prelude reexported-modules: Control.Concurrent.STM , Control.Concurrent.STM.TArray
+ lib/Incipit.hs view
@@ -0,0 +1,25 @@+{-# options_haddock prune #-}++-- |This module is intended to be used by the packages [incipit-core](https://hackage.haskell.org/package/incipit-core)+-- and [incipit](https://hackage.haskell.org/package/incipit), which are Preludes for packages using+-- [Polysemy](https://hackage.haskell.org/package/polysemy).+--+-- Aside from a few additional names from @base@, this module also exports the string system from+-- [relude](https://hackage.haskell.org/package/relude), some tracing functions, and a small set of other combinators.+module Incipit (+ module Incipit.Base,+ module Incipit.Debug,+ module Incipit.Either,+ module Incipit.Libraries,+ module Incipit.List,+ module Incipit.Misc,+ module Incipit.String,+) where++import Incipit.Base+import Incipit.Debug+import Incipit.Either+import Incipit.Libraries+import Incipit.List+import Incipit.Misc+import Incipit.String
lib/Incipit/List.hs view
@@ -2,7 +2,7 @@ module Incipit.List where import qualified Data.List as List-import Prelude (Maybe (..))+import Data.Maybe (Maybe (..)) -- |Return 'Just' the head of a list. head :: [a] -> Maybe a
− lib/Incipit/Prelude.hs
@@ -1,25 +0,0 @@-{-# options_haddock prune #-}---- |This module is intended to be used by the packages [incipit-core](https://hackage.haskell.org/package/incipit-core)--- and [incipit](https://hackage.haskell.org/package/incipit), which are Preludes for packages using--- [Polysemy](https://hackage.haskell.org/package/polysemy).------ Aside from a few additional names from @base@, this module also exports the string system from--- [relude](https://hackage.haskell.org/package/relude), some tracing functions, and a small set of other combinators.-module Incipit.Prelude (- module Incipit.Base,- module Incipit.Debug,- module Incipit.Either,- module Incipit.Libraries,- module Incipit.List,- module Incipit.Misc,- module Incipit.String,-) where--import Incipit.Base-import Incipit.Debug-import Incipit.Either-import Incipit.Libraries-import Incipit.List-import Incipit.Misc-import Incipit.String
+ lib/Prelude.hs view
@@ -0,0 +1,6 @@+-- |Exposing this module makes it possible to depend on the package without a mixin.+module Prelude (+ module Incipit+) where++import Incipit
readme.md view
@@ -1,5 +1,29 @@+# About+ This library is part of [incipit], a set of `Prelude` modules for the [Polysemy] ecosystem. It contains the reexports from `base` that are inherited by the other two packages.++# Usage++`incipit-base` exports `Prelude`, so in order to use it you only have to hide `Prelude` from `base`:++For `hpack`:+```yaml+dependencies:+ - name: base+ version: '>= 4 && < 5'+ mixin:+ - hiding (Prelude)+ - incipit-base >= 0.1.0.3+```++For `cabal`:+```cabal+build-depends:+ base >=4 && <5, incipit-base >= 0.1.0.3+mixins:+ base hiding (Prelude)+``` [incipit]: https://hackage.haskell.org/package/incipit [Polysemy]: https://hackage.haskell.org/package/polysemy