|
definition: |
formatWarnings :: [Warning] -> String
formatWarnings [] = ""
formatWarnings ws@((p,_):_) = "\nWARNINGS in " ++ getFilename p ++ ":"
++ foldr (++) "" (map formatW ws)
++ "\n\n"
where
formatW :: Warning -> String
formatW w = "\n" ++ "Line " ++ show (getLn (getWarnPos w))
++ " Col " ++ show (getCol (getWarnPos w))
++ " | " ++ getWarnMsg w
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
Formatting Warnings |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({[]}) |-> {[]} || ({:}) |-> _}
|
|
name: |
formatWarnings |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
[(CPP.ICode.ParsePos.Pos, String)] -> String |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |