[Haskell-cafe] Library for overloaded indexing (a la (!))

Tom Ellis tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Fri Aug 14 06:41:30 UTC 2015


On Thu, Aug 13, 2015 at 11:36:01PM -0700, William Yager wrote:
> Alright, so we've established how to replicate (!) and (!?) using lens;
> what about (!!) and (!!?)? Those were the ones that gave me typing trouble.

Can't you just define an indexed getter for the particular case you care
about?


More information about the Haskell-Cafe mailing list