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

William Yager 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.

Thanks,
Will

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 ^?!)?
>
>
>
> http://haddock.stackage.org/lts-3.0/microlens-0.2.0.0/Lens-Micro.html#v:-94--63
>
> and also available in Control.Lens.
>
> Tom
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150813/ec8d1ab1/attachment.html>


More information about the Haskell-Cafe mailing list