Fix missing import in HscMain

David Terei davidterei at gmail.com
Thu Jan 26 20:20:17 CET 2012


Hmm it validated fine on x64 Linux under ghc 7.2.2. The import is only
required in GHCi code, so I just pushed a patch that adds the proper
ifdefs for this. Hopefully this solves the issue.

I need to call 'unsafeCoerce#' in HscMain as of a previous patch.

On 26 January 2012 07:12, Ian Lynagh <igloo at earth.li> wrote:
>
> Hi David,
>
> After this patch:
>
>> commit 54b7afc5b56406459dc41b7e4e91f8d062e741ba
>> Author: David Terei <davidterei at gmail.com>
>> Date:   Thu Jan 26 01:50:44 2012 -0800
>>
>>     Fix missing import in HscMain.
>>
>> diff --git a/compiler/main/HscMain.hs b/compiler/main/HscMain.hs
>> index e06e6fa..13d85bf 100644
>> --- a/compiler/main/HscMain.hs
>> +++ b/compiler/main/HscMain.hs
>> @@ -145,6 +145,7 @@ import UniqSupply       ( initUs_ )
>>  import Bag
>>  import Exception
>>
>> +import GHC.Exts
>>  import Data.List
>>  import Control.Monad
>>  import Data.Maybe
>
> my HEAD validate is failing with:
>
> compiler/main/HscMain.hs:148:1:
>    Warning: The import of `GHC.Exts' is redundant
>               except perhaps to import instances from `GHC.Exts'
>             To import instances alone, use: import GHC.Exts()
>
> Why did you need to add the import? And what platform does it validate
> on for you?
>
>
> Thanks
> Ian
>



More information about the Cvs-ghc mailing list