Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module reexports most of the definitions from the "base" package, which are meant to be imported unqualified.
For details check out the source.
- bool :: a -> a -> Bool -> a
- traceShowId :: Show a => a -> a
- traceM :: Monad m => String -> m ()
- traceShowM :: (Show a, Monad m) => a -> m ()
Reimplementations of functions presented in versions of "base" newer than 4.6
Data.Bool
bool :: a -> a -> Bool -> a Source
Case analysis for the Bool
type.
bool a b p
evaluates to a
when p
is False
, and evaluates to b
when p
is True
.
Debug.Trace
traceShowId :: Show a => a -> a Source
Like traceShow
but returns the shown value instead of a third value.