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

2013-09-30 Thread David Luposchainsky
On 2013-09-30 04:00, Patrick Palka wrote: > + isPrelude :: ImportDecl Name -> Bool > + isPrelude = (== "Prelude") . moduleNameString . unLoc . ideclName > > Can't you just do unLoc (ideclName imp) == pRELUDE_NAME here? I think I hardcoded the name because I wanted to make sure not to run into th

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

2013-09-29 Thread Patrick Palka
On Sun, Sep 29, 2013 at 9:10 PM, wrote: > +isPrelude :: ImportDecl Name -> Bool > +isPrelude = (== "Prelude") . moduleNameString . unLoc . ideclName Can't you just do unLoc (ideclName imp) == pRELUDE_NAME here? ___ ghc-devs mailing list ghc-d