ghci - evanmoran/quick GitHub Wiki

To print the type of a function:

:t <function_name>

To do multi-line input manually (whitespace matters):

Prelude> :{
Prelude| let add :: Int -> Int -> Int
Prelude|     add x y = x + y
Prelude| :}

To assume multi-line input (whitespace matters):

:set +m