954,523 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Haskell test files .cl

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!

ckwolfe
Newbie Poster
10 posts since Apr 2011
Reputation Points: 10
Solved Threads: 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.

Rashakil Fol
Super Senior Demiposter
Team Colleague
2,658 posts since Jun 2005
Reputation Points: 1,135
Solved Threads: 177
 
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 :)

ckwolfe
Newbie Poster
10 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You