|
definition: |
setConsFuns :: ICOptions -> [(String, [(QName,(IArity,Int))])]
-> [(String, [(QName,Int)])] -> ICOptions
setConsFuns opts modconslist modfunlist =
opts { optConsMap = foldr addIfNotPresent (optConsMap opts) modconslist
, optFunMap = foldr addIfNotPresent (optFunMap opts) modfunlist
, optModsMaps = union (map fst modconslist)
(union (map fst modfunlist) (optModsMaps opts))
}
where
addIfNotPresent (mn,nameinfos) infomap =
if mn `elem` optModsMaps opts
then infomap
else foldr addQMap infomap nameinfos
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
Sets the internal constructor and function maps from given lists. |
|
failfree: |
(_, _, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({ICOptions},_,_) |-> {ICOptions}}
|
|
name: |
setConsFuns |
|
precedence: |
no precedence defined |
|
result-values: |
{ICOptions}
|
|
signature: |
ICOptions -> [(String, [((String, String), (Prelude.Int, Prelude.Int))])] -> [(String, [((String, String), Prelude.Int)])] -> ICOptions |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |