[GHC] #12376: Allow function definitions in record syntax