To indent within GHCi, use the :{ / :} command.
For example, typing the Quick Check 2.2 example in GHCi would look like the following:
Prelude> :{
Prelude| doubleDouble x = dubs * 2
Prelude| where dubs = x * 2
Prelude| :}
Prelude> doubleDouble 1
4
Prelude>
You can see the complete list of commands available in GHCi by typing :? in GHCi.
You need to indent by at least one whitespace character. However, that is considered a bad style. The answer at stackoverflow.com covers this in detail.
|