[Haskell-beginners] How to nest arbitrary things

Imants Cekusins imantc at gmail.com
Mon Dec 21 20:06:55 UTC 2015


> a lens with the name 'cans' will be created.

Does Template Haskell modify code file or can these '_' names be used
throughout the code without visible definition?

Thank you for this very detailed and specific example.

Could we say that lens is a bit like extension to record syntax: allow to
traverse, get and set properties for structures that are  more complex than
simple 1 level record?

Why do lens require Template Haskell? Only to generate '_' functions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20151221/c44b7d4b/attachment.html>


More information about the Beginners mailing list