3import Control.Applicative ( (<$>) )
4import qualified Data.UnionFind.IO as UF
5import Text.PrettyPrint as P
7import qualified AST.Annotation as A
8import AST.PrettyPrint (pretty)
9import Type.Type (Descriptor, toSrcType)
18 -> UF.Point Descriptor
19 -> UF.Point Descriptor
21create region hint t1 t2 =
22 do t1' <- pretty <$> toSrcType t1
23 t2' <- pretty <$> toSrcType t2
24 return . foldr ($+$) P.empty $
25 [ P.text "Type mismatch between the following types" <+> pretty region <> P.text ":"
31 , maybe P.empty (P.nest 4 . P.text) hint
32 , P.text " It is related to the following expression:"
34 , P.nest 8 $ A.getRegionDocs region
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