[Haskell-beginners] import module with (..)

Brandon Allbery allbery.b at gmail.com
Mon Sep 16 22:04:05 CEST 2013


On Mon, Sep 16, 2013 at 4:01 PM, Miro Karpis <miroslav.karpis at gmail.com>wrote:

> Please, what does mean the (..) brackets when we are importing a package?
>
> import Network (listenOn, accept, *PortID(..)*, Socket)
>

PortID is a type, for which you can list in parentheses the specific
constructors you want to import or .. for all of its constructors.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130916/476b5245/attachment.htm>


More information about the Beginners mailing list