'No such file' - ghc Parsec Package Error

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).

cabal build can be used to build the binary in bin.
stack can also do the build command to do this as well.
Joseph Melfi
On Mon, Apr 25, 2016 at 11:45 AM Imants Cekusins
<
mailto:Imants Cekusins
wrote:
Can cabal be used to compile? _______________________________________________ Beginners mailing list mailto:Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

Thank you for the information. Will give this a go. Should do the trick hopefully.
Ollie
From: Beginners on behalf of Joseph Melfi
Reply-To: The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell
Date: Monday, 25 April 2016 20:29
To: Imants Cekusins, The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell
Subject: {Disarmed} Re: [Haskell-beginners] 'No such file' - ghc Parsec Package Error
cabal build can be used to build the binary in bin.
stack can also do the build command to do this as well.
Joseph Melfi
On Mon, Apr 25, 2016 at 11:45 AM Imants Cekusins
participants (3)
-
Imants Cekusins
-
Joseph Melfi
-
Oliver Dean