Template:HaskellGHCi

From Wikibooks, open books for an open world
Jump to: navigation, search
{{{1}}}
Template documentation

This template is used for GHCi transcripts in Haskell books.

Example:

{{HaskellGHCi|1=
Prelude> let f a b = a * b
Prelude> f 3 5
15
Prelude> 
}}

Is rendered as:

Prelude> let f a b = a * b
Prelude> f 3 5
15
Prelude>

The |1= is necessary as the text may contain equal signs. Otherwise just {{{1}}} would get displayed.