Commit 08d595c0 authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot

Give seq a more precise type and remove magic

`GHC.Prim.seq` previously had the rather plain type:

    seq :: forall a b. a -> b -> b

However, it also had a special typing rule to applications
where `b` is not of kind `Type`.

Issue #17440 noted that levity polymorphism allows us to rather give
it the more precise type:

    seq :: forall (r :: RuntimeRep) a (b :: TYPE r). a -> b -> b

This allows us to remove the special typing rule that we previously
required to allow applications on unlifted arguments. T9404 contains a
non-Type application of `seq` which should verify that this works as

Closes #17440.
parent a8adb5b4
Pipeline #12952 passed with stages
in 466 minutes and 35 seconds