mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-14 16:28:34 +03:00
Moving typechecker to shared; editor should be able to do typechecking, adds no extra reps, and makes development of typechecker easier
This commit is contained in:
parent
5c0167a920
commit
2baa404d7a
@ -60,8 +60,6 @@ library
|
||||
Unison.Term.Extra
|
||||
Unison.TermEdit.Extra
|
||||
Unison.Type.Extra
|
||||
Unison.Typechecker
|
||||
Unison.Typechecker.Context
|
||||
|
||||
build-depends:
|
||||
aeson,
|
||||
|
@ -27,12 +27,11 @@ import qualified Unison.Type as Type
|
||||
|
||||
-- | Elements of an ordered algorithmic context
|
||||
data Element
|
||||
= Universal ABT.V -- | ^ `v` is universally quantified
|
||||
| Existential ABT.V -- | ^ `v` existential and unsolved
|
||||
| Solved ABT.V Monotype -- | ^ `v` is solved to some monotype
|
||||
| Ann ABT.V Type -- | ^ `v` has type `a`, which may be quantified
|
||||
| Marker ABT.V -- | ^ used for scoping
|
||||
deriving Eq
|
||||
= Universal ABT.V -- `v` is universally quantified
|
||||
| Existential ABT.V -- `v` existential and unsolved
|
||||
| Solved ABT.V Monotype -- `v` is solved to some monotype
|
||||
| Ann ABT.V Type -- `v` has type `a`, which may be quantified
|
||||
| Marker ABT.V deriving (Eq) -- used for scoping
|
||||
|
||||
instance Show Element where
|
||||
show (Universal v) = show v
|
@ -47,6 +47,8 @@ library
|
||||
Unison.Term
|
||||
Unison.TermEdit
|
||||
Unison.Type
|
||||
Unison.Typechecker
|
||||
Unison.Typechecker.Context
|
||||
|
||||
build-depends:
|
||||
aeson,
|
||||
|
Loading…
Reference in New Issue
Block a user