[prev in list] [next in list] [prev in thread] [next in thread]
List: haskell-beginners
Subject: Re: [Haskell-beginners] Compiling
From: Daniel Fischer <daniel.is.fischer () web ! de>
Date: 2010-06-25 9:09:16
Message-ID: 201006251109.16213.daniel.is.fischer () web ! de
[Download RAW message or body]
On Friday 25 June 2010 07:34:29, Chris Saunders wrote:
> First, thanks for the reply Daniel. I just wanted to add that I needed
> to use the command line "ghc --make hello.hs. I first tried "ghc --make
> hello hello.hs" and this didn't work.
If you want to redirect the output, the option is '-o',
ghc --make -o hithere hello.hs
(you needn't specify the extension, ghc --make -o hithere hello works too
[or ghc --make hello -o hithere, order of command line arguments doesn't
matter]), if no '-o' option is given, GHC defaults to the same name for the
binary as the main module [on Windows, name.exe].
> The second is closer to the
> command line that I used when I had the case error in the source code.
>
> Regards
> Chris Saunders
>
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic