ghc-4.01, linux, binary for i386   says

  panic! (the `impossible' happened):
          tcLookupGlobalValue: T.name{-r1n,x-} ...

when compiling
-------------------------------------------------------------
data S a = S {longFieldName :: a}

f :: S String -> S String 
f    s        = 
                 let  S {name = x} = s  in  S {name = tail x}

name = longFieldName   -- local for this module
-------------------------------------------------------------


Otherwise, how can one introduce a short local synonym for 
longFieldName ?
I thought, the record field is treated as a function ...
And the long global names for the record fields, they look in-
avoidible in Haskell-98. Because, as, say, in the above example, many 
different kinds of object modelled by records are likely to have a 
field called `name'.


------------------
Sergey Mechveliani
[EMAIL PROTECTED]

Reply via email to