Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
curry
curry-frontend
Commits
9bdb80c4
Commit
9bdb80c4
authored
May 17, 2011
by
Björn Peemöller
Browse files
Refactoring
parent
77ee0644
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Curry/Syntax/Utils.hs
View file @
9bdb80c4
...
...
@@ -20,7 +20,7 @@ isTypeDecl (TypeDecl _ _ _ _) = True
isTypeDecl
_
=
False
isTypeSig
::
Decl
->
Bool
isTypeSig
(
TypeSig
_
_
_
)
=
True
isTypeSig
(
TypeSig
_
_
_
)
=
True
isTypeSig
(
ExternalDecl
_
_
_
_
_
)
=
True
isTypeSig
_
=
False
...
...
@@ -29,11 +29,11 @@ isEvalAnnot (EvalAnnot _ _ _) = True
isEvalAnnot
_
=
False
isValueDecl
::
Decl
->
Bool
isValueDecl
(
FunctionDecl
_
_
_
)
=
True
isValueDecl
(
ExternalDecl
_
_
_
_
_
)
=
True
isValueDecl
(
FlatExternalDecl
_
_
)
=
True
isValueDecl
(
PatternDecl
_
_
_
)
=
True
isValueDecl
(
ExtraVariables
_
_
)
=
True
isValueDecl
(
FunctionDecl
_
_
_
)
=
True
isValueDecl
(
ExternalDecl
_
_
_
_
_
)
=
True
isValueDecl
(
FlatExternalDecl
_
_
)
=
True
isValueDecl
(
PatternDecl
_
_
_
)
=
True
isValueDecl
(
ExtraVariables
_
_
)
=
True
isValueDecl
_
=
False
isRecordDecl
::
Decl
->
Bool
...
...
@@ -42,5 +42,5 @@ isRecordDecl _ = False
-- |Convert an infix operator into an expression
infixOp
::
InfixOp
->
Expression
infixOp
(
InfixOp
op
)
=
Variable
op
infixOp
(
InfixOp
op
)
=
Variable
op
infixOp
(
InfixConstr
op
)
=
Constructor
op
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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