Multi-line commands in GHCi
Most of the time, you can rely on type inference to work out a signature for you. In your example, the following is sufficient: Prelude> let addTwo x y = x + y If you really want a definition with a type signature, or your definition spans over multiple lines, you can do this in … Read more