1module Type.Fragment where
3import qualified Data.List as List
4import qualified Data.Map as Map
7import AST.Annotation (noneNoDocs)
9data Fragment = Fragment
10 { typeEnv :: Map.Map String Type
12 , typeConstraint :: TypeConstraint
15emptyFragment = Fragment Map.empty [] (noneNoDocs CTrue)
17joinFragment f1 f2 = Fragment
18 { typeEnv = Map.union (typeEnv f1) (typeEnv f2)
19 , vars = vars f1 ++ vars f2
20 , typeConstraint = typeConstraint f1 /\ typeConstraint f2
23joinFragments = List.foldl' (flip joinFragment) emptyFragment
26 Scheme [] (vars fragment) (typeConstraint fragment) (typeEnv fragment)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list