• Ryan Scott's avatar
    Add namePackage function to template-haskell · 77662e13
    Ryan Scott authored
    Currently there exists a nameBase function (for retrieving a Name's OccName)
    and a nameModule function (for retrieving a Name's ModName), but there is no
    counterpart for PkgNames.
    
    This would be useful for implementing Template Haskell features which need
    to have easy access to a Name's package (e.g., automatically derived Lift
    instances).
    
    Reviewed By: goldfire, austin, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1237
    77662e13
all.T 13.7 KB