On Sun, Sep 29, 2013 at 9:10 PM, <git@git.haskell.org> wrote:
+    isPrelude :: ImportDecl Name -> Bool
+    isPrelude = (== "Prelude") .  moduleNameString . unLoc . ideclName

Can't you just do unLoc (ideclName imp) == pRELUDE_NAME here?