[Git][ghc/ghc][master] Use an explicit pattern match in toIfaceIdDetails