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:
Paul Chiusano 2015-06-17 09:48:24 -04:00
parent 5c0167a920
commit 2baa404d7a
4 changed files with 7 additions and 8 deletions

View File

@ -60,8 +60,6 @@ library
Unison.Term.Extra
Unison.TermEdit.Extra
Unison.Type.Extra
Unison.Typechecker
Unison.Typechecker.Context
build-depends:
aeson,

View File

@ -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

View File

@ -47,6 +47,8 @@ library
Unison.Term
Unison.TermEdit
Unison.Type
Unison.Typechecker
Unison.Typechecker.Context
build-depends:
aeson,