Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Finn Teegen
curry-base
Commits
bfb633dd
Commit
bfb633dd
authored
Sep 09, 2016
by
Finn Teegen
Browse files
Add predefined identifier for apply function
parent
8b7b06b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Curry/Base/Ident.hs
View file @
bfb633dd
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment