system F
This commit is contained in:
@@ -14,6 +14,9 @@ module Compiler.RlpcError
|
||||
-- * Located Comonad
|
||||
, Located(..)
|
||||
, SrcSpan(..)
|
||||
|
||||
-- * Common error messages
|
||||
, undefinedVariableErr
|
||||
)
|
||||
where
|
||||
----------------------------------------------------------------------------------
|
||||
@@ -74,3 +77,8 @@ debugMsg tag e = MsgEnvelope
|
||||
, _msgSeverity = SevDebug tag
|
||||
}
|
||||
|
||||
undefinedVariableErr :: Text -> RlpcError
|
||||
undefinedVariableErr n = Text
|
||||
[ "Variable not in scope: `" <> n <> "'."
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user