summaryrefslogtreecommitdiff
path: root/Presence/Logging.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Presence/Logging.hs')
-rw-r--r--Presence/Logging.hs25
1 files changed, 25 insertions, 0 deletions
diff --git a/Presence/Logging.hs b/Presence/Logging.hs
new file mode 100644
index 00000000..b997d341
--- /dev/null
+++ b/Presence/Logging.hs
@@ -0,0 +1,25 @@
1{-# LANGUAGE RankNTypes #-}
2module Logging where
3
4import qualified Data.ByteString.Lazy.Char8 as L
5import qualified Data.ByteString.Char8 as S
6import qualified Data.Text.IO as Text
7import qualified Data.Text as Text
8import qualified Debug.Trace as Debug
9
10debugL :: L.ByteString -> IO ()
11debugS :: S.ByteString -> IO ()
12debugStr :: String -> IO ()
13debugText :: Text.Text -> IO ()
14trace :: forall a. String -> a -> a
15
16
17debugStr str = putStrLn str
18
19debugL bs = L.putStrLn bs
20
21debugS bs = S.putStrLn bs
22
23debugText text = Text.putStrLn text
24
25trace str a = Debug.trace str a