[GHC] #10558: Alter type of parseDeclaration and parseTypeSignature entry points