[GHC] #8325: Pattern guards in anonymous functions