[commit: ghc] master: Fix AMP warnings for explicit Prelude imports (#8004) (b9127f4)

Patrick Palka patrick at parcs.ath.cx
Mon Sep 30 02:00:18 UTC 2013


On Sun, Sep 29, 2013 at 9:10 PM, <git at git.haskell.org> wrote:

> +    isPrelude :: ImportDecl Name -> Bool
> +    isPrelude = (== "Prelude") .  moduleNameString . unLoc . ideclName


Can't you just do unLoc (ideclName imp) == pRELUDE_NAME here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20130929/bcd4a7cb/attachment.htm>


More information about the ghc-devs mailing list