Skip to content
Snippets Groups Projects
Verified Commit c7e692bc authored by Legy (Beini)'s avatar Legy (Beini)
Browse files

Add some more debug functions to the prelude

parent 77d878f6
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,8 @@ module Prelude
traceId,
traceShow,
traceShowId,
traceM,
traceShowM,
Maybe.listToMaybe,
intercalate
)
......@@ -62,6 +64,13 @@ traceShow = Trace.traceShow
traceShowId :: Show a => a -> a
traceShowId = Trace.traceShowId
{-# DEPRECATED traceM "Partitial Function." #-}
traceM :: Applicative m => String -> m ()
traceM = Trace.traceM
{-# DEPRECATED traceShowM "Partitial Function." #-}
traceShowM :: (Show a, Applicative m) => a -> m ()
traceShowM = Trace.traceShowM
intercalate :: Monoid a => a -> [a] -> a
intercalate _ [] = mempty
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment