CurryInfo: currypp-3.2.0 / CPP.ICode.TransICode.formatWarnings

definition: Info
 
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: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
Formatting Warnings
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({[]}) |-> {[]} || ({:}) |-> _}
name: Info
 formatWarnings
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 [(CPP.ICode.ParsePos.Pos, String)] -> String
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term