Module CPP.ICode.ParseWarning

Warnings for Parsers

Author: Jasper Sikorra - jsi@informatik.uni-kiel.de

Version: January 2014

Summary of exported operations:

getWarnPos :: (Pos,String) -> Pos  Deterministic 
setWarnPos :: (Pos,String) -> Pos -> (Pos,String)  Deterministic 
getWarnMsg :: (Pos,String) -> String  Deterministic 
setWarnMsg :: (Pos,String) -> String -> (Pos,String)  Deterministic 
returnWM :: a -> [(Pos,String)] -> WM a  Deterministic 
The Warning Monad's return function
bindWM :: WM a -> (a -> WM b) -> WM b  Deterministic 
The Warning Monad's bind function
mapWarns :: ((Pos,String) -> (Pos,String)) -> WM a -> WM a  Deterministic 
Apply a function on each Warning of a Warning Monad
cleanWM :: a -> WM a  Deterministic 
singleWM :: a -> (Pos,String) -> WM a  Deterministic 
discardWarnings :: WM a -> a  Deterministic 
getWarnings :: WM a -> [(Pos,String)]  Deterministic 

Exported datatypes:


WM

The Warning Monad

Constructors:


Warning

Type synonym: Warning = (Pos,String)


Exported operations:

getWarnPos :: (Pos,String) -> Pos  Deterministic 

Further infos:
  • solution complete, i.e., able to compute all solutions

setWarnPos :: (Pos,String) -> Pos -> (Pos,String)  Deterministic 

getWarnMsg :: (Pos,String) -> String  Deterministic 

Further infos:
  • solution complete, i.e., able to compute all solutions

setWarnMsg :: (Pos,String) -> String -> (Pos,String)  Deterministic 

returnWM :: a -> [(Pos,String)] -> WM a  Deterministic 

The Warning Monad's return function

Further infos:
  • solution complete, i.e., able to compute all solutions

bindWM :: WM a -> (a -> WM b) -> WM b  Deterministic 

The Warning Monad's bind function

mapWarns :: ((Pos,String) -> (Pos,String)) -> WM a -> WM a  Deterministic 

Apply a function on each Warning of a Warning Monad

cleanWM :: a -> WM a  Deterministic 

Further infos:
  • solution complete, i.e., able to compute all solutions

singleWM :: a -> (Pos,String) -> WM a  Deterministic 

Further infos:
  • solution complete, i.e., able to compute all solutions

discardWarnings :: WM a -> a  Deterministic 

Further infos:
  • solution complete, i.e., able to compute all solutions

getWarnings :: WM a -> [(Pos,String)]  Deterministic 

Further infos:
  • solution complete, i.e., able to compute all solutions