File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,6 @@ library
51
51
-- fclabels >= 2.0.3,
52
52
chr-data >= 0.1.0.0 ,
53
53
chr-pretty >= 0.1.0.0 ,
54
- logict-state >= 0.1.0.4
54
+ logict-state >= 0.1.0.5
55
55
hs-source-dirs : src
56
56
default-language : Haskell2010
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ module CHR.Solve.MonoBacktrackPrio
37
37
, runCHRMonoBacktrackPrioT
38
38
39
39
, addRule
40
- -- , addRule2
41
40
42
41
, addConstraintAsWork
43
42
@@ -79,6 +78,7 @@ import Data.Typeable
79
78
import Data.Maybe
80
79
81
80
import Control.Monad
81
+ -- import Control.Monad.IO.Class
82
82
import Control.Monad.Except
83
83
import Control.Monad.State.Strict
84
84
import Control.Monad.LogicState
@@ -298,6 +298,8 @@ bst = sndl
298
298
type MonoBacktrackPrio cnstr guard bprio prio subst env m
299
299
= ( IsCHRSolvable env cnstr guard bprio prio subst
300
300
, Monad m
301
+ -- TODO: replace MonadIO with API abstracting away access to persistent structures
302
+ -- , MonadIO m
301
303
, Lookup subst (VarLookupKey subst ) (VarLookupVal subst )
302
304
, LookupApply subst subst
303
305
, Fresh Int (ExtrValVarKey (VarLookupVal subst ))
@@ -951,7 +953,7 @@ chrSolve opts env = slv
951
953
alts -> do
952
954
forM alts $ \ alt@ (FoundBodyAlt {foundBodyAltBacktrackPrio= bprio}) -> do
953
955
log (Just alt)
954
- (backtrack $ nextwork bprio alt) >>= slvSchedule bprio
956
+ (backtrackWithRoll ( \ _ _ bs -> {- (liftIO $ putStrLn "TEST") >> -} return bs) $ nextwork bprio alt) >>= slvSchedule bprio
955
957
slvScheduleRun
956
958
957
959
where
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ library
50
50
chr-parse >= 0.1.0.0 ,
51
51
chr-pretty >= 0.1.0.0 ,
52
52
chr-data >= 0.1.0.0 ,
53
- chr-core >= 0.1.0.1
53
+ chr-core >= 0.1.0.3
54
54
hs-source-dirs : src
55
55
default-language : Haskell2010
56
56
You can’t perform that action at this time.
0 commit comments