|
definition: |
mapWarns :: (Warning -> Warning) -> WM a -> WM a mapWarns f w = returnWM (discardWarnings w) (map f (getWarnings w)) |
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
Apply a function on each Warning of a Warning Monad |
|
failfree: |
(_, _) |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_,_) |-> {WM}}
|
|
name: |
mapWarns |
|
precedence: |
no precedence defined |
|
result-values: |
{WM}
|
|
signature: |
((CPP.ICode.ParsePos.Pos, String) -> (CPP.ICode.ParsePos.Pos, String)) -> WM a -> WM a |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
yes |
|
totally-defined: |
reducible on all ground data terms |