composite-xstep: ReaderT transformer pattern for higher kinded composite data.

[ data-structures, library, mit ] [ Propose Tags ]

ReaderT transformer pattern for higher kinded composite data.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), composite-base, vinyl [details]
License MIT
Copyright 2020 Daniel Firth
Author Daniel Firth
Maintainer dan.firth@homotopic.tech
Category Data Structures
Source repo head: git clone https://gitlab.com/homotopic-tech/composite-xstep
Uploaded by locallycompact at 2020-09-05T14:22:15Z
Distributions LTSHaskell:0.1.0.0
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 350 total (8 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-09-05 [all 1 reports]

Readme for composite-xstep-0.1.0.0

[back to package description]

composite-xstep

This package provides a specific XRec pattern for composite records, where the interpretation functor is isomorphic to ReaderT r m.

For example

import Path
import Composite.Record
import Composite.TH

withLensesAndProxies [d|
  type FPath          = "path"            :-> Path Rel File
  type FPath2         = "path2"           :-> Path Rel File
  |]

type A = '[FPath, FPath2]

foo :: MonadThrow m => XStep m FilePath A
foo =  parseRelDir
   ::& stripProperPrefix $(mkRelFile "foo") =<< parseRelDir
   ::& XRNil