Copyright | (c) 2016 Stephen Diehl (c) 20016-2018 Serokell (c) 2018 Kowainik |
---|---|
License | MIT |
Maintainer | Kowainik <xrom.xkov@gmail.com> |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Functions for debugging. If you left these functions in your code then a warning is generated to remind you about left usages. Also some functions (and data types) are convenient for prototyping.
Synopsis
- data Undefined = Undefined
- error :: forall (r :: RuntimeRep). forall (a :: TYPE r). HasCallStack => Text -> a
- trace :: Print b => b -> a -> a
- traceM :: Monad m => Text -> m ()
- traceId :: Text -> Text
- traceShow :: Show a => a -> b -> b
- traceShowId :: Show a => a -> a
- traceShowM :: (Show a, Monad m) => a -> m ()
- undefined :: forall (r :: RuntimeRep). forall (a :: TYPE r). HasCallStack => a
Documentation
Instances
error :: forall (r :: RuntimeRep). forall (a :: TYPE r). HasCallStack => Text -> a Source #
traceShowId :: Show a => a -> a Source #
Warning: traceShowId
remains in code
Version of traceShow
that leaves warning.
traceShowM :: (Show a, Monad m) => a -> m () Source #
Warning: traceShowM
remains in code
Version of traceShowM
that leaves warning.
undefined :: forall (r :: RuntimeRep). forall (a :: TYPE r). HasCallStack => a Source #