on master help sign in
Doc update
commitf92a83f8ae8cbd4d1892ff0ec86e3ce058857a33 authorMichael Xavier <michael@michaelxavier.net> dateFri 7 Jul 2017, 14:46 (9 years ago) parent83f6d6b
1 file changed+3−2
katip/src/Katip/Monadic.hs+3−2
katip/src/Katip/Monadic.hs+3−2
@@ -395,7 +395,7 @@ runKatipContextT le ctx ns = flip runReaderT lts . unKatipContextT
395395-------------------------------------------------------------------------------
396396-- | Append a namespace segment to the current namespace for the given
397397-- monadic action, then restore the previous state
398−-- afterwards.
398+-- afterwards. Works with anything implementing KatipContext.
399399katipAddNamespace
400400 :: (KatipContext m)
401401 => Namespace
@@ -414,7 +414,8 @@ katipAddNamespace ns = localKatipNamespace (<> ns)
414414-- added. If you instead roll your own recursion and you're recursing
415415-- in the action you provide, you'll instead accumulate tons of
416416-- redundant contexts and even if they all merge on log, they are
417−-- stored in a sequence and will leak memory.
417+-- stored in a sequence and will leak memory. Works with anything
418+-- implementing KatipContext.
418419katipAddContext
419420 :: ( LogItem i
420421 , KatipContext m