merge: A functor for consistent merging of information

[ data, library, mit ] [ Propose Tags ]

A functor for consistent merging of information.

[Skip to Readme]


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,
Change log
Dependencies base (>=4.6 && <5), profunctors (>=5.6 && <6) [details]
License MIT
Copyright 2020 Samuel Schlesinger
Author Samuel Schlesinger
Category Data
Source repo head: git clone
Uploaded by sgschlesinger at 2021-09-17T06:35:16Z
Distributions NixOS:
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 544 total (3 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-17 [all 1 reports]

Readme for merge-

[back to package description]


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

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

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