Remove GHC.Err import from Data.Maybe

Neil Mitchell ndmitchell at gmail.com
Mon Dec 31 11:57:05 EST 2007


Hi

GHC.Arr and GHC.Base both also have this issue, but they could well be
necessary.

These imports of Err all include {-# SOURCE #-} pragmas, which GHC
warns me are unnecessary, but clear change the output. What do the
SOURCE pragma's do? I couldn't find them in the manual.

Thanks

Neil

On 12/31/07, Neil Mitchell <ndmitchell at gmail.com> wrote:
> Hi,
>
> I noticed that Data.List uses "error" normally, but Data.Maybe
> explicitly imports it from GHC.Err. Is there a reason for this?
> Removing the import GHC.Err line still appears to work.
>
> This caused me issues with circular modules and recursive boot files,
> in various mixtures. It's not a fatal issue, but since it seems to be
> a cleanup, it might be worth doing.
>
> Thanks
>
> Neil
>



More information about the Cvs-ghc mailing list