The tutorial I'm reading says after we've defined the function, we need to go to where it is saved and load it. The GHCi shell that I'm using seems to only interpret Haskell, meaning I can't move anywhere. How can this be done other than moving the file to the directory where the shell is?
You can use the :cd command:
$ ghci
ghci> :cd directory/to/move/to
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