0

Hey, I'm a beginner at compiling (or interpreting) Haskell and some of the basic things are hard to do especially when theres not a lot of info out there for me to use. My question is, how do I run a test file after I have compiled?
I compiler with:
ghc --makefile filename.hs -o executable.exe
And then my test file (provided by my professor) test.cl. Whats the command in the prompt to run the test file with the executable.exe?
Thanks!

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by ckwolfe
0

That depends on how your program is written. Does it take the file name as a command line parameter? Does it read the file as standard input? It depends.

0

That depends on how your program is written. Does it take the file name as a command line parameter? Does it read the file as standard input? It depends.

Problem solved. I finally received an email back from my TA. Thanks anyways :)

Edited by ckwolfe: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.