X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcSMonad.lhs;fp=compiler%2Ftypecheck%2FTcSMonad.lhs;h=f527ff7c3e6b98ce342523da157ab1cd0cc3c610;hp=8a63e86d0f6a300575776d608c40aad6cf9cde11;hb=b6264a6b8a8e22e24464da39ca0a3a0176d91f4e;hpb=9591547fbbdf12728884e125f8ba08b0e6e69f82 diff --git a/compiler/typecheck/TcSMonad.lhs b/compiler/typecheck/TcSMonad.lhs index 8a63e86..f527ff7 100644 --- a/compiler/typecheck/TcSMonad.lhs +++ b/compiler/typecheck/TcSMonad.lhs @@ -595,7 +595,9 @@ nestImplicTcS ref (inner_range, inner_tcs) (TcS thing_inside) -- outer ones! ; orig_flat_cache <- TcM.readTcRef orig_flat_cache_var - ; flat_cache_var <- TcM.newTcRef orig_flat_cache -- emptyFlatCache + ; flat_cache_var <- TcM.newTcRef orig_flat_cache + -- One could be more conservative as well: + -- ; flat_cache_var <- TcM.newTcRef emptyFlatCache -- Consider copying the results the tcs_flat_map of the -- incomping constraint, but we must make sure that we