[Haskell-beginners] 'No such file' - ghc Parsec Package Error
Oliver Dean
ojd2 at st-andrews.ac.uk
Mon Apr 25 17:06:51 UTC 2016
Hello All,
Silly question, I cannot seem to compile an additional .hs file using the –package parsec –o command…
It has to be something to do with my directory locations no doubt. I’ve tried numerous attempts and still no luck.
I have a program called simple_parser which was compiled using the ‘parser.hs' file.
Now I wish to run and compile with the parsec package using the file ‘parsec.hs’…
Both my .hs files are located in the same folder:
8afbc4c1:HS_Parser homefolder$ ls
parsec.hs parser.hi parser.hs parser.o simple_parser
Then when I try the following (and I have tried many different path routes ../../ and vice versa), I get the following:
8afbc4c1:HS_Parser homefolder$ ghc -package parsec -o simple_parser [..parsec.hs parsec.hs]
<no location info>: can't find file: [..parsec.hs
Sorry to be such a newbie!
Any helpful direction would be greatly appreciated. Not sure if I am doing something wrong or my code is…?
PS - Both .hs files have slightly differing lines of code (based on the Wiki Book Scheme -> Haskell tutorial).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160425/90a8817a/attachment.html>
More information about the Beginners
mailing list