local qualified names

"Iavor S. Diatchki" <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
hi,
here is a module system bug:

module List where

data T a = Nil | Cons a (T a)

nil :: List.T a
nil = T.Nil

ERROR "test.hs":5 - Undefined type constructor "List.T"
(and also the value constructor is not defined).

one should be able to refer to local names with their qualified names.
this is good for documentation purposes, when one programs in a certain 
style (1 datatype/module, and it is always called T).

it is also important when combined with the "lazy name clash" feature of 
the haskell module system to resolve conflicts.

bye
iavor


-- 
==================================================
| Iavor S. Diatchki, Ph.D. student               |
| Department of Computer Science and Engineering |
| School of OGI at OHSU                          |
| http://www.cse.ogi.edu/~diatchki               |
==================================================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.