module Debug (
undefined,
error,
trace,
traceM,
traceIO,
traceShow,
traceShowM,
notImplemented,
) where
import Data.Text (Text, unpack)
import Control.Monad (Monad, return)
import qualified Base as P
import qualified Debug.Trace as T
error :: Text -> a
error s = P.error (unpack s)
trace :: Text -> a -> a
trace s = T.trace (unpack s)
traceShow :: P.Show a => a -> b -> b
traceShow a b = T.trace (P.show a) b
traceShowM :: (P.Show a, Monad m) => a -> m ()
traceShowM a = T.trace (P.show a) (return ())
traceM :: (Monad m) => Text -> m ()
traceM s = T.trace (unpack s) (return ())
traceIO :: Text -> P.IO ()
traceIO s = T.traceIO (unpack s)
notImplemented :: a
notImplemented = P.error "Not implemented"
undefined :: a
undefined = P.undefined