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

- trace :: String -> a -> a
- traceM :: Applicative f => String -> f ()
- traceId :: String -> String
- traceShow :: Show a => a -> b -> b
- traceShowId :: Show a => a -> a
- traceShowM :: (Show a, Applicative f) => a -> f ()
- error :: forall (r :: RuntimeRep). forall (a :: TYPE r). HasCallStack => Text -> a
- data Undefined = Undefined
- undefined :: forall (r :: RuntimeRep). forall (a :: TYPE r). HasCallStack => a

# Tracing

traceM :: Applicative f => String -> f () Source #

traceShowId :: Show a => a -> a Source #

Warning: `traceShowId`

remains in code

Version of `traceShowId`

that leaves warning.

traceShowM :: (Show a, Applicative f) => a -> f () Source #

Warning: `traceShowM`

remains in code

Version of `traceShowM`

that leaves warning.

# Imprecise error

error :: forall (r :: RuntimeRep). forall (a :: TYPE r). HasCallStack => Text -> a Source #

## Instances

undefined :: forall (r :: RuntimeRep). forall (a :: TYPE r). HasCallStack => a Source #