2-- Module : Streamly.Internal.Control.Exception
3-- Copyright : (c) 2019 Composewell Technologies
6-- Maintainer : streamly@composewell.com
7-- Stability : experimental
10-- Additional "Control.Exception" utilities.
12module Streamly.Internal.Control.Exception
18-- | Like 'assert' but is not removed by the compiler, it is always present in
24verify :: Bool -> a -> a
27 -- XXX it would be nice if we can print the predicate expr.
28 then error "verify failed"
31-- Like 'verify' but returns @()@ in an 'Applicative' context so that it can be
32-- used as an independent statement in a @do@ block.
37verifyM :: Applicative f => Bool -> f ()
38verifyM predicate = verify predicate (pure ())
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list