Alex Rivera | Logout

Command ls or dir in ghci

Asked 2012-05-31T16:05:52.627
13

I'm new to Haskell.

I'm using ghci. I know I can move through directory with the command :cd <dir>. But I cannot find the command to list the files in a directory (something like Unix ls or Microsoft dir).

Is it possible to do it in GHCI?

Thank you

Edit
Report

1 Answer

36

You can call bash command :!ls.

answered 2012-05-31T16:08:02.710

Your Answer