File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/Language/Haskell/Liquid Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -463,11 +463,12 @@ getReflects = fmap val . S.toList . S.unions . fmap (names . snd) . M.toList
463463------------------------------------------------------------------------------------------
464464addReflSigs :: GhcSpecRefl -> GhcSpecSig -> GhcSpecSig
465465------------------------------------------------------------------------------------------
466- addReflSigs refl sig = sig { gsRefSigs = reflSigs, gsAsmSigs = filter notReflected (gsAsmSigs sig) }
466+ addReflSigs refl sig = sig { gsRefSigs = reflSigs, gsAsmSigs = wreflSigs ++ filter notReflected (gsAsmSigs sig) }
467467 where
468- reflSigs = [ (x, t) | (x, t, _) <- gsHAxioms refl ]
469- reflected = fst <$> reflSigs
470- notReflected xt = (fst xt) `notElem` reflected
468+ (wreflSigs, reflSigs) = L. partition ((`elem` gsWiredReft refl) . fst )
469+ [ (x, t) | (x, t, _) <- gsHAxioms refl ]
470+ reflected = fst <$> (wreflSigs ++ reflSigs)
471+ notReflected xt = fst xt `notElem` reflected
471472
472473makeAutoInst :: Bare. Env -> ModName -> Ms. BareSpec -> M. HashMap Ghc. Var (Maybe Int )
473474makeAutoInst env name spec = Misc. hashMapMapKeys (Bare. lookupGhcVar env name " Var" ) (Ms. autois spec)
You can’t perform that action at this time.
0 commit comments