|
definition: |
prog2ModInfo :: Prog -> ModInfo
prog2ModInfo prog =
ModInfo prog
(Map.fromList (map (\fd -> (snd (funcName fd), funcType fd))
(progFuncs prog)))
(Map.fromList (map (\(qc, cinfo) -> (snd qc, cinfo))
(consInfoOfTypeDecls (progTypes prog))))
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
Generates a `ProgInfo` entry for a given FlatCurry program. |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_) |-> {ModInfo}}
|
|
name: |
prog2ModInfo |
|
precedence: |
no precedence defined |
|
result-values: |
{ModInfo}
|
|
signature: |
FlatCurry.Types.Prog -> ModInfo |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |