spurious names

Iavor S. Diatchki diatchki@cse.ogi.edu
Tue, 11 Feb 2003 11:02:10 -0800


hello,

i run into the following problem:

class C t where
   elem :: t

-- default_elem = 3

-- when default_elem is not used
-- INTERNAL ERROR: pmcTerm

-- instance C Int where
--   elem = default_elem

-- when default_elem is used
-- INTERNAL ERROR: typeAp1

-- when default_elem is not defined (at command prompt)
-- :i default_elem
-- default_elem :: <unknown type>


it looks like hugs introduces new (valid) names into the program.
would it be possible to hide this from the user?

thanks
iavor

-- 
==================================================
| Iavor S. Diatchki, Ph.D. student               |
| Department of Computer Science and Engineering |
| School of OGI at OHSU                          |
| http://www.cse.ogi.edu/~diatchki               |
==================================================