mirror of
https://github.com/anoma/juvix.git
synced 2024-12-15 01:52:11 +03:00
[typecheck] Updates to error message copy
This commit is contained in:
parent
a030b97e8f
commit
d297322b7d
@ -52,10 +52,9 @@ instance PrettyError WrongType where
|
||||
<> line <> indent' (ppCode (e ^. wrongTypeExpectedType))
|
||||
|
||||
instance PrettyError ExpectedFunctionType where
|
||||
ppError e = "Type error."
|
||||
<> line <> "The expression:"
|
||||
ppError e = "Type error in the expression:"
|
||||
<> line <> indent' (ppCode (e ^. expectedFunctionTypeExpression))
|
||||
<> line <> "is expected to be a function application but" <+> ppCode (e ^. expectedFunctionTypeApp) <+> "has type:"
|
||||
<> line <> "the expression" <+> ppCode (e ^. expectedFunctionTypeApp) <+> "is expected to have a function type but has type:"
|
||||
<> line <> indent' (ppCode (e ^. expectedFunctionTypeType))
|
||||
|
||||
instance PrettyError TooManyPatterns where
|
||||
|
Loading…
Reference in New Issue
Block a user