Can you define a multi-line function in the .ghci
file?
I've tried
what :: Show a => a -> a
what = Db.traceShowId
But this didn't work. Is there some way to do this?
The .ghci file is not the proper place for such definitions.
Still, if you really must, you can use
:{
line1
line2
...
:}
otherwise, you can try to put the whole definition in one line
line1 ; line2 ; ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With