From 1fd766ca7ac1feea1e9c752f8ce438fab8e01d35 Mon Sep 17 00:00:00 2001 From: Simon Peyton Jones Date: Wed, 8 Jan 2020 16:29:04 +0000 Subject: Comments about constraint floating --- compiler/typecheck/TcSimplify.hs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/typecheck/TcSimplify.hs b/compiler/typecheck/TcSimplify.hs index ddd53145ca..63a1552932 100644 --- a/compiler/typecheck/TcSimplify.hs +++ b/compiler/typecheck/TcSimplify.hs @@ -2544,6 +2544,11 @@ Here (1,2,3) are handled by the "seed_skols" calculation, and The possible dependence on givens, and evidence bindings, is more subtle than we'd realised at first. See #14584. +How can (4) arise? Suppose we have (k :: *), (a :: k), and ([G} k ~ *). +Then form an equality like (a ~ Int) we might end up with + [W] co1 :: k ~ * + [W] co2 :: (a |> co1) ~ Int + ********************************************************************************* * * -- cgit v1.2.1