Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

Commit 163b0cd

Browse files
committed
sync with uhc-util
1 parent 853b68b commit 163b0cd

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

EHC/src/ehc/CHR/Constraint.chs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,13 @@ instance (CHRMatchable env p s, TTKey p ~ Key) => CHRMatchable env (Constraint'
8686
; (_,p2,_) <- cnstrReducablePart c2
8787
; chrMatchTo env s p1 p2
8888
}
89+
chrBuiltinSolve e s x = Nothing
8990

91+
{-
9092
-- not yet supported
9193
instance (CHREmptySubstitution s, VarLookupCmb s s) => CHRBuiltinSolvable env (Constraint' p info) s where
9294
chrBuiltinSolve e s x = Nothing
95+
-}
9396
%%]
9497

9598
%%[(9 hmtyinfer || hmtyast)

EHC/src/ehc/CHR/Solve.chs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ type SolveStep e c g p s = Mono.SolveStep c g s
4141
%%% For Poly variant
4242
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4343

44+
-- 20160331 AD: no longer supported, support removed from uhc-util lib
45+
4446
%%[(9999 hmtyinfer) import(UHC.Util.CHR.Solve.TreeTrie.Poly hiding(IsCHRSolvable(..), SolveState, SolveTrace, SolveStep, CHRStore), qualified UHC.Util.CHR.Solve.TreeTrie.Poly as Poly) export(module UHC.Util.CHR.Solve.TreeTrie.Poly, IsCHRSolvable(..), SolveState, SolveTrace, SolveStep, CHRStore', CHRSolverConstraint)
4547
instance Poly.IsCHRSolvable FIIn VarMp
4648

EHC/src/ehc/EH/UsedNames.cag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ gathMentrelFilterMpFromSimplifyResult :: HsName -> SimplifyResult -> ModEntRelFi
3535
gathMentrelFilterMpFromSimplifyResult moduleNm simpRes
3636
= mentrelFilterMpUnions
3737
[ mentrelFilterMpSingleton [moduleNm] IdOcc_Val nm
38-
| (Reduction {cnstrInfo=RedHow_ByInstance nm _ _}) <- (filterMb fromSolverConstraint $ chrSolveStateDoneConstraints $ simpresSolveState simpRes :: [Constraint])
38+
| (Reduction {cnstrInfo=RedHow_ByInstance nm _ _}) <- ({- filterMb fromSolverConstraint $ -} chrSolveStateDoneConstraints $ simpresSolveState simpRes :: [Constraint])
3939
]
4040
%%]
4141

EHC/src/ehc/Pred/ToCHR.chs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ mkClassSimplChrs env rules (context, head, infos)
211211
= simps
212212
where simps = chrStoreFromElems $ mapTrans (Set.fromList [head1]) [] head1 (zip infos (map (\p -> Red_Pred $ mkCHRPredOcc p sc1) context))
213213
(superClassesWork, superClassesDone, _ :: SolveTrace FIIn Constraint Guard Prio VarMp)
214-
= chrSolve' [] env rules (map (\p -> toSolverConstraint $ mkAssume $ mkCHRPredOcc p sc1) context)
214+
= chrSolve' [] env rules (map (\p -> {- toSolverConstraint $ -} mkAssume $ mkCHRPredOcc p sc1) context)
215215
superClasses = superClassesWork ++ superClassesDone
216-
graph = mkRedGraphFromReductions $ filterMb fromSolverConstraint superClasses
216+
graph = mkRedGraphFromReductions {- $ filterMb fromSolverConstraint -} superClasses
217217
head1 = mkCHRPredOcc head sc1
218218
head2 = mkCHRPredOcc head sc2
219219
head3 = mkCHRPredOcc head sc3
@@ -448,10 +448,10 @@ chrSimplifySolveToRedGraph env chrStore cnstrInfoMpPrev cnstrInfoMp prevRes
448448
}
449449
)
450450
where (_,u1,u2) = mkNewLevUID2 $ fiUniq env
451-
solveState = chrSolve'' [] (env {fiUniq = u1}) chrStore (map toSolverConstraint $ Map.keys $ cnstrInfoMp `Map.difference` cnstrInfoMpPrev) (simpresSolveState prevRes)
451+
solveState = chrSolve'' [] (env {fiUniq = u1}) chrStore ({- map toSolverConstraint $ -} Map.keys $ cnstrInfoMp `Map.difference` cnstrInfoMpPrev) (simpresSolveState prevRes)
452452
cnstrInfoMpAll = cnstrMpUnion cnstrInfoMp cnstrInfoMpPrev
453453
redGraph
454-
= addToRedGraphFromReductions (filterMb fromSolverConstraint $ chrSolveStateDoneConstraints solveState)
454+
= addToRedGraphFromReductions ({- filterMb fromSolverConstraint $ -} chrSolveStateDoneConstraints solveState)
455455
$ addToRedGraphFromAssumes cnstrInfoMpAll
456456
$ simpresRedGraph prevRes
457457
%%]

EHC/src/ehc/VarMp.chs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ varmpTyUnit = varmpSingleton
361361

362362
%%[(6 hmtyinfer || hmtyast).VarMp.varmpTyUnit -2.VarMp.varmpTyUnit export(varmpMetaLevTyUnit,varmpTyUnit)
363363
varmpMetaLevTyUnit :: Ord k => MetaLev -> k -> Ty -> VarMp' k VarMpInfo
364-
varmpMetaLevTyUnit mlev v t = varmpMetaLevSingleton mlev v (VMITy t)
364+
varmpMetaLevTyUnit mlev v t = varlookupSingletonWithMetaLev mlev v (VMITy t)
365365

366366
varmpTyUnit :: Ord k => k -> Ty -> VarMp' k VarMpInfo
367367
varmpTyUnit = varmpMetaLevTyUnit metaLevVal

0 commit comments

Comments
 (0)