I am new to Haskell and trying to learn it from "Learn you a Haskell." I have run into a problem that I cannot find an answer to anywhere. I have a simple program that I want to run, but nothing will I do will make it run. What the book is telling me to do doesn't work. I can compile the program and run individual functions, but I can't get main to run unless I call that particular function. That seemed fine to me until I tried to pass a text file into it and it doesn't work.
So what do I do to run the program after typing :load program.hs?
I have tried... $ ./program --make program --make program.exe and about a thousand variations of these things. What the hell do I do to get my program running so that I can pass it a text file? Picture of results in GHCi
ghc, notghci, but I'd recommend you use cabal instead.