This repository was archived by the owner on Apr 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
semantic-core/src/Analysis Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ cacheTerm eval term = do
6767 result <- eval term
6868 result <$ modify (Cache . Map. insertWith (<>) term (Set. singleton (result :: a )) . unCache)
6969
70- runHeap :: address -> StateC (Heap address a ) m b -> m (Heap address a , b )
71- runHeap addr m = runState (Map. singleton addr Set . empty) m
70+ runHeap :: StateC (Heap address a ) m b -> m (Heap address a , b )
71+ runHeap m = runState (Map. empty) m
7272
7373-- | Fold a collection by mapping each element onto an 'Alternative' action.
7474foldMapA :: (Alternative m , Foldable t ) => (b -> m a ) -> t b -> m a
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ importGraph
6363importGraph eval
6464 = run
6565 . runFresh
66- . runHeap " __semantic_root "
66+ . runHeap
6767 . traverse (runFile eval)
6868
6969runFile
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ typecheckingFlowInsensitive
103103typecheckingFlowInsensitive eval
104104 = run
105105 . runFresh
106- . runHeap " __semantic_root "
106+ . runHeap
107107 . fmap (fmap (fmap (fmap generalize)))
108108 . traverse (runFile eval)
109109
You can’t perform that action at this time.
0 commit comments