merge: A functor for consistent merging of information

[ data, library, mit ] [ Propose Tags ]

A functor for consistent merging of information.


[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, 0.2.0.0, 0.3.0.0, 0.3.0.1, 0.3.1.1
Change log CHANGELOG.md
Dependencies base (>=4.6 && <5), profunctors (>=5.6 && <6) [details]
License MIT
Copyright 2020 Samuel Schlesinger
Author Samuel Schlesinger
Maintainer sgschlesinger@gmail.com
Category Data
Source repo head: git clone https://github.com/samuelschlesinger/merge
Uploaded by sgschlesinger at 2021-09-16T08:59:11Z
Distributions NixOS:0.3.1.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 633 total (19 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-09-16 [all 1 reports]

Readme for merge-0.1.0.0

[back to package description]

Merge

data User = User
  { name :: Maybe Text
  , pubKey :: PublicKey
  }

mergeUsers :: Merge User User
mergeUsers =
  User
    <$> optional name
    <*> required pubKey

f :: User -> User -> Maybe User
f x y = runMerge mergeUsers x y