Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I navigate a directory in the GHCi shell?

Tags:

haskell

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?

like image 451
user2030677 Avatar asked Dec 30 '25 18:12

user2030677


1 Answers

You can use the :cd command:

$ ghci
ghci> :cd directory/to/move/to
like image 88
bheklilr Avatar answered Jan 01 '26 08:01

bheklilr



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!