Handle dynamic GHCs properly when using TH