[aklug] Re: My dream editor...?

From: Christopher Howard <christopher.howard@frigidcode.com>
Date: Fri May 20 2011 - 18:58:56 AKDT

On 05/20/2011 06:47 PM, Christopher Howard wrote:
> On 05/20/2011 11:16 AM, Tim Johnson wrote:
>> Christopher, do I take that to mean that the program itself is a
>> binary that is created by compiling of haskell code? IOWS:
>> haskell has both interpreter and compiler?
>>
>

Oh, and you can interpret from the command line as well. With GHC, the
interpreter and the compiler are the same program, just run with
different flags.

cmhoward@enigma /scratch/cmhoward/test/haskell $ cat hello.hs
main = putStrLn "Hello world!"
cmhoward@enigma /scratch/cmhoward/test/haskell $ ghc --make hello.hs -o
hello
[1 of 1] Compiling Main ( hello.hs, hello.o )
Linking hello ...
cmhoward@enigma /scratch/cmhoward/test/haskell $ ./hello
Hello world!
cmhoward@enigma /scratch/cmhoward/test/haskell $ ghc --interactive
GHCi, version 6.12.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> :load hello.hs
Ok, modules loaded: Main.
Prelude Main> :main
Hello world!

-- 
frigidcode.com
theologia.indicium.us
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Fri May 20 18:58:39 2011

This archive was generated by hypermail 2.1.8 : Fri May 20 2011 - 18:58:39 AKDT