[GHC] #11397: Type mismatch in local definitions in Haskell 98 code