3 importJava "org.slf4j.MDC" where
4 get :: String -> <Proc> Maybe String
5 put :: String -> String -> <Proc> ()
6 remove :: String -> <Proc> ()
8 putOrRemove :: String -> Maybe String -> <Proc> ()
9 putOrRemove key (Just value) = put key value
10 putOrRemove key Nothing = remove key
13 withContext :: String -> String -> (<e> a) -> <e,Proc> a
14 withContext key value procedure = result
19 putOrRemove key oldValue