[GHC] #10573: Generalize forever to Applicative