[Haskell-cafe] OO "dot" notation and records...

Alexey Raga alexey.raga at gmail.com
Tue Apr 9 10:53:59 UTC 2019

Not really.

You have intellisense suggesting you functions in modules (e.g. if you
import Data.List as List and then type "List dot" it can suggest you some
You can also have almost "OO-style" dot-notation for records via lenses
like "myUser ^. address . street" (or myUser ^. field @"address" .
field @"street" if you use generic-lens). But I doubt that there is
something that suggests you "fields" on "dot", since in Haskell they are
not really fields, they are "normal" functions. Haskell doesn't really have
records in that context.

Best Regards,
Alexey Raga

On Tue, Apr 9, 2019 at 7:23 PM Nicholls, Mark <nicholls.mark at vimn.com>

> Is there something in Haskell like this?
> I could do with getting OO like intelisense going...i.e. you have some
> values, the types are inhered in my environment, and the available
> functions prompt the programmer.
> (I'm not a big Haskell user, but I'm trying to "sell" it as an alternative
> for F# and scala in an industrial context).
> This e-mail (and any attached files) is confidential and protected by
> copyright (and other intellectual property rights). If you are not the
> intended recipient please e-mail the sender and then delete the email and
> any attached files immediately. Any further use or dissemination is
> prohibited.
> While MTV Networks Europe has taken steps to ensure that this email and
> any attachments are virus free, it is your responsibility to ensure that
> this message and any attachments are virus free and do not affect your
> systems / data.
> Communicating by email is not 100% secure and carries risks such as delay,
> data corruption, non-delivery, wrongful interception and unauthorised
> amendment. If you communicate with us by e-mail, you acknowledge and assume
> these risks, and you agree to take appropriate measures to minimise these
> risks when e-mailing us.
> MTV Networks International, MTV Networks UK & Ireland, Greenhouse,
> Nickelodeon Viacom Consumer Products, VBSi, Viacom Brand Solutions
> International, Be Viacom, Viacom International Media Networks and VIMN and
> Comedy Central are all trading names of MTV Networks Europe.  MTV Networks
> Europe is a partnership between MTV Networks Europe Inc. and Viacom
> Networks Europe Inc.  Address for service in Great Britain is 17-29 Hawley
> Crescent, London, NW1 8TT.
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20190409/cc0fa9a6/attachment.html>

More information about the Haskell-Cafe mailing list