Syntax sugar for defining maps

Version on this page:0.2@rev:1
LTS Haskell 22.29:0.3@rev:9
Stackage Nightly 2024-07-19:0.3@rev:9
Latest on Hackage:0.3@rev:9

See all snapshots map-syntax appears in

BSD-3-Clause licensed and maintained by Doug Beardsley
This version can be pinned in stack with:map-syntax-0.2@sha256:a93319d0e596c19820b62ff5e62f97f26133b4af8500b143ecdd3a8ab1ee271e,2237

Module documentation for 0.2

  • Data
    • Data.Map
      • Data.Map.Syntax
Depends on 3 packages(full list with versions):
Used by 1 package in lts-0.7(full list with versions):

Haskell’s canonical list of tuples syntax for defining maps is not very convenient and also has ambiguous semantics. This package leverages do notation to create a lighter syntax that makes semantics explicit and also allows the option of fail-fast handling of duplicate keys.