diff options
Diffstat (limited to 'Presence/Logging.hs')
-rw-r--r-- | Presence/Logging.hs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Presence/Logging.hs b/Presence/Logging.hs new file mode 100644 index 00000000..f55e2e79 --- /dev/null +++ b/Presence/Logging.hs | |||
@@ -0,0 +1,17 @@ | |||
1 | module Logging where | ||
2 | |||
3 | import qualified Data.ByteString.Lazy.Char8 as L | ||
4 | import qualified Data.ByteString.Char8 as S | ||
5 | import qualified Data.Text.IO as Text | ||
6 | import qualified Debug.Trace as Debug | ||
7 | |||
8 | |||
9 | debugStr str = putStrLn str | ||
10 | |||
11 | debugL bs = L.putStrLn bs | ||
12 | |||
13 | debugS bs = S.putStrLn bs | ||
14 | |||
15 | debugText text = Text.putStrLn text | ||
16 | |||
17 | trace str a = Debug.trace str a | ||