|
definition: |
isCurryID :: QName -> Bool
isCurryID (_,n) = case n of
[] -> False
x:xs | isAlpha x -> all (\c -> isAlphaNum c || c `elem` "'_") xs
| otherwise -> all (flip elem opChars) n
where
opChars = "~!@#$%^&*+-=<>?./|\\:"
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
Is a qualified name an allowed Curry identifier (i.e., not a generated id)? |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({(,)}) |-> _}
|
|
name: |
isCurryID |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
(String, String) -> Prelude.Bool |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |