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@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@haskell.org
http://www.haskell.org/mailman/listinfo/beginners