The keyed package

[Tags:bsd3, library]

This library provides generic indexing for a number of data structures, so that we can overload (!) in the same way we overload length with Foldable or (f)map with Functor.

[Skip to Readme]


Dependencies base (>=4.7 && <4.9), containers (>=0.5 && <=, vector (>=0.8 && <= [details]
License BSD3
Author Will Yager
Category Data
Home page
Source repository head: git clone
Uploaded Thu Aug 13 04:46:55 UTC 2015 by wyager
Distributions NixOS:
Downloads 304 total (14 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2015-08-13 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for keyed

Readme for keyed-

This library is simple enough: it provides overloaded functions for indexing data structures.

In Data.Keyed, we provide functions for pure data structures that return the contained values unwrapped.

For example, you can do [1,2,3] ! 2 or Map.fromList [(1,'a'),(2,'b')] ! 1.

In Data.MKeyed, we provide functions for data structures that return the contained values wrapped in a Monad (like IO, ST, or STM) or other container. This module is highly experimental, and it may change to improve interoperability with certain libraries.