morley-prelude-0.6.0: A custom prelude used in Morley
Safe HaskellSafe-Inferred
LanguageHaskell2010

Debug

Description

This module reexports an unconstrained version of show, which can be used to print non-human-readable types. Generally, you don't want this. The cases where this makes sense are:

  • You want to print specifically a Haskell representation for debugging purposes
  • There is no meaningful human-readable representation
  • You're implementing a Show instance

It's perfectly okay to use Debug.show in these cases. When the output is intended to be seen by the end user, however, you should use Fmt.pretty instead.

This module should be imported qualified:

import qualified Debug (show)
Synopsis

Documentation

show :: forall b a. (Show a, IsString b) => a -> b #

Generalized version of show.