[Haskell-beginners] constant set

Ovidiu Deac ovidiudeac at gmail.com
Sat Mar 10 19:29:03 CET 2012


OK. Thanks for the answers

On Sat, Mar 10, 2012 at 7:30 PM, Antoine Latter <aslatter at gmail.com> wrote:

> 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/edfe4cc8/attachment.htm>


More information about the Beginners mailing list