scope in ghci

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
5 Oct 2001 12:00:46 GMT


Fri, 05 Oct 2001 15:14:15 +0400, S.D.Mechveliani <mechvel@math.botik.ru> pisze:

>                Dm1> sort $ dm1 [1%2,1%3]    -- contrived example
> is impossible.
> Instead, it needs        
>             Dm1> List.sort Prelude.$ dm1 [1 Ratio.% 2, 1 Ratio.% 3]

This happens when the module Dm1 is compiled. It's because a compiled
module doesn't provide the information which names were in scope in
its source.

Perhaps ghc should use the .o/.hi files for execution and parse its
.hs for getting this information if it's set as the current module.

-- 
 __("<  Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK