Commit bfb633dd authored by Finn Teegen's avatar Finn Teegen
Browse files

Add predefined identifier for apply function

parent 8b7b06b3
......@@ -49,7 +49,7 @@ module Curry.Base.Ident
-- ** Identifiers for constructors
, trueId, falseId, nilId, consId, tupleId, isTupleId, tupleArity
-- ** Identifiers for values
, mainId, minusId, fminusId, errorId, anonId, isAnonId
, mainId, minusId, fminusId, applyId, errorId, anonId, isAnonId
-- * Predefined qualified identifiers
-- ** Identifiers for types
......@@ -60,7 +60,7 @@ module Curry.Base.Ident
-- ** Identifiers for constructors
, qTrueId, qFalseId, qNilId, qConsId, qTupleId, isQTupleId, qTupleArity
-- ** Identifiers for values
, qErrorId
, qApplyId, qErrorId
-- * Extended functionality
-- ** Functional patterns
......@@ -485,6 +485,10 @@ minusId = mkIdent "-"
fminusId :: Ident
fminusId = mkIdent "-."
-- | 'Ident' for the apply function
applyId :: Ident
applyId = mkIdent "apply"
-- | 'Ident' for the error function
errorId :: Ident
errorId = mkIdent "error"
......@@ -605,6 +609,11 @@ qTupleArity = tupleArity . unqualify
-- Qualified Identifiers for values
-- ---------------------------------------------------------------------------
-- | 'QualIdent' for the apply function
qApplyId :: QualIdent
qApplyId = qPreludeIdent applyId
-- | 'QualIdent' for the error function
qErrorId :: QualIdent
qErrorId = qPreludeIdent errorId
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment