Is it possible to write multi-line function definitions with type-signature inside GHCi (as you would write it in a source file)?
I've tried so far something like this:
Prelude> :{
Prelude| let f :: Int -> Int;
Prelude| f i = i + 1
Prelude| :}
<interactive>:9:1: parse error on input ‘f’
but it didn't work... Is there anything else I could try?