[GHC] #8184: Compiler panic in the presence of cyclic imports