summaryrefslogtreecommitdiff
path: root/compiler/utils/GraphColor.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-11-07 17:24:47 -0500
committerBen Gamari <ben@well-typed.com>2019-11-17 07:21:44 -0500
commit44a1a9e9502025390ccd64555d87c8d7186bc4a1 (patch)
treea7f87931f244ef2f9011597f7bca7fb16dfa4310 /compiler/utils/GraphColor.hs
parentf8971129cb50a0c2f01a09b6fe46f8e92d2a6e88 (diff)
downloadhaskell-wip/T17440.tar.gz
Give seq a more precise type and remove magicwip/T17440
`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 expected. Closes #17440.
Diffstat (limited to 'compiler/utils/GraphColor.hs')
0 files changed, 0 insertions, 0 deletions