[Haskell-beginners] constant set
Antoine Latter
aslatter at gmail.com
Sat Mar 10 18:30:08 CET 2012
A name space in Haskell is a module, and GHC only allows one module per
file.
So I would put these in a separate file, or do manual namespacing using
prefixes, as in "colorRed".
On Mar 10, 2012 11:14 AM, "Ovidiu Deac" <ovidiudeac at gmail.com> wrote:
>
> What are you trying to gain here by having the color namespace?
>>
>
> I want to avoid polluting the global namespace and to avoid name
> collisions.
>
> As I said, the example with the colours wasn't probably a good one.
>
> Let me change the question: How can I create a sub-namespace in the same
> file?
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120310/3887da83/attachment.htm>
More information about the Beginners
mailing list