[Haskell-cafe] Library for overloaded indexing (a la (!))
will.yager at gmail.com
Fri Aug 14 06:36:01 UTC 2015
Yep, that'll do it!
Alright, so we've established how to replicate (!) and (!?) using lens;
what about (!!) and (!!?)? Those were the ones that gave me typing trouble.
Also, I'm still interested in auto-deriviation of Ixed/Keyed instances for
all Vector types through Vector.Generic.
On Thu, Aug 13, 2015 at 11:29 PM, Tom Ellis <
tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk> wrote:
> On Thu, Aug 13, 2015 at 10:31:53PM -0700, William Yager wrote:
> > it only provides a substitute for "!?", not "!". (Or at least, I couldn't
> > figure out how to get "!" behavior cleanly.)
> (Don't you want ^?!)?
> and also available in Control.Lens.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe