• Adam Gundry's avatar
    Avoid find_tycon panic if datacon is not in scope · 4d71cc89
    Adam Gundry authored
    When using TH to splice expressions involving record field construction,
    the parent datacon may not be in scope.  We shouldn't panic about this,
    because we will be renaming Exact RdrNames which don't require any
    Test Plan: new test th/T12130
    Reviewers: austin, bgamari
    Reviewed By: bgamari
    Subscribers: thomie
    Differential Revision: https://phabricator.haskell.org/D2321
    GHC Trac Issues: #12130
T12130a.hs 283 Bytes