forked from GitHub/gf-core
better error message for the ai command
This commit is contained in:
@@ -644,7 +644,7 @@ allCommands cod env@(pgf, mos) = Map.fromList [
|
|||||||
else space $$
|
else space $$
|
||||||
text "fun" <+> vcat [ppCId fid <+> colon <+> ppType 0 [] ty
|
text "fun" <+> vcat [ppCId fid <+> colon <+> ppType 0 [] ty
|
||||||
| (fid,ty) <- functionsToCat pgf id])
|
| (fid,ty) <- functionsToCat pgf id])
|
||||||
Nothing -> do putStrLn "unknown identifier"
|
Nothing -> do putStrLn ("unknown category of function identifier "++show id)
|
||||||
return void
|
return void
|
||||||
[e] -> case inferExpr pgf e of
|
[e] -> case inferExpr pgf e of
|
||||||
Left tcErr -> error $ render (ppTcError tcErr)
|
Left tcErr -> error $ render (ppTcError tcErr)
|
||||||
|
|||||||
@@ -7,10 +7,7 @@ A function type is expected for the expression 1 instead of type Int
|
|||||||
Category Int should have 0 argument(s), but has been given 1
|
Category Int should have 0 argument(s), but has been given 1
|
||||||
|
|
||||||
In the type: Int 0
|
In the type: Int 0
|
||||||
|
|
||||||
A function type is expected for the expression 1 instead of type Int
|
|
||||||
|
|
||||||
Couldn't match expected type Int -> Int
|
|
||||||
A function type is expected for the expression 1 instead of type Int
|
A function type is expected for the expression 1 instead of type Int
|
||||||
|
|
||||||
Couldn't match expected type Int -> Int
|
Couldn't match expected type Int -> Int
|
||||||
|
|||||||
Reference in New Issue
Block a user