|
definition: |
arityPosOfCons :: ICOptions -> QName -> (IArity,Int)
arityPosOfCons opts qn =
maybe (funError opts $ "Internal error in ICurry.Compiler:\n" ++
"arity of constructor " ++ showQName qn ++ " is unknown")
id
(qmapLookup qn (optConsMap opts))
|
|
demand: |
arguments 1 2 |
|
deterministic: |
deterministic operation |
|
documentation: |
Lookup arity and position index of a constructor. |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_) |-> _}
|
|
name: |
arityPosOfCons |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
ICOptions -> (String, String) -> (Prelude.Int, Prelude.Int) |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |