This repository was archived by the owner on Apr 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
semantic-core/src/Analysis Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import Data.Scope
3333import qualified Data.Set as Set
3434import Data.Stack
3535import Data.Term
36+ import Data.Void
3637import GHC.Generics (Generic1 )
3738import Prelude hiding (fail )
3839
@@ -78,11 +79,11 @@ forAll n body = send (PForAll (Data.Scope.bind1 n body))
7879forAlls :: (Eq a , Carrier sig m , Member Polytype sig , Foldable t ) => t a -> m a -> m a
7980forAlls ns body = foldr forAll body ns
8081
81- generalize :: Term Monotype Meta -> Term (Polytype :+: Monotype ) Gensym
82+ generalize :: Term Monotype Meta -> Term (Polytype :+: Monotype ) Void
8283generalize ty = fromJust (closed (forAlls (IntSet. toList (mvs ty)) (hoistTerm R ty)))
8384
8485
85- typecheckingFlowInsensitive :: [File (Term Core. Core Name )] -> (Heap Name (Term Monotype Meta ), [File (Either (Loc , String ) (Term (Polytype :+: Monotype ) Gensym ))])
86+ typecheckingFlowInsensitive :: [File (Term Core. Core Name )] -> (Heap Name (Term Monotype Meta ), [File (Either (Loc , String ) (Term (Polytype :+: Monotype ) Void ))])
8687typecheckingFlowInsensitive
8788 = run
8889 . runFresh
You can’t perform that action at this time.
0 commit comments