how to install haskell plz?

Page 1 of 1

5 Replies - 682 Views - Last Post: 18 March 2010 - 06:25 PM

#1 icey123  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 41
  • Joined: 07-November 09

how to install haskell plz?

Posted 17 March 2010 - 04:26 PM

im a beginner to this programming language i just need to know links would be helpful
im from the uk and want to install the enviroment to a windows operating system i need the compiler and help on how to install it and what do i use to write my programs in and the compile them through the compiler plz help!
Is This A Good Question/Topic? 0
  • +

Replies To: how to install haskell plz?

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1642
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: how to install haskell plz?

Posted 17 March 2010 - 04:28 PM

Take a look at this, should get you started down the right path :)
Was This Post Helpful? 0
  • +
  • -

#3 icey123  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 41
  • Joined: 07-November 09

Re: how to install haskell plz?

Posted 17 March 2010 - 05:54 PM

still cant get somthing working when i have intalled it i have installed winhugs and ghci don t know how to write the source code an compile
Was This Post Helpful? 0
  • +
  • -

#4 erik.price  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 485
  • View blog
  • Posts: 2,690
  • Joined: 18-December 08

Re: how to install haskell plz?

Posted 17 March 2010 - 06:11 PM

Write the program in your favorite editor, make sure you have a main in there, and compile with ghc. (Hugs is an interpreter)

Check out this guide http://www.haskell.o...Haskell_program

Example:

main.hs
main = putStrLn "Hello World"


To compile to an executable named "HelloWorld" (or "HelloWorld.exe" on Windows)
ghc -o HelloWorld main.hs

-o specifies the output file's name (in this case, HelloWorld)
main.hs is the source to be compiled.

To run:
Windows - HelloWorld.exe
*nix - ./HelloWorld
Was This Post Helpful? 0
  • +
  • -

#5 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: how to install haskell plz?

Posted 17 March 2010 - 07:35 PM

My resources thread at the top of this forum tells you have to install the Haskell Platform, and talks about various editors and tutorials. You should have no problem if you read it.
Was This Post Helpful? 0
  • +
  • -

#6 s243a  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 137
  • Joined: 17-March 10

Re: how to install haskell plz?

Posted 18 March 2010 - 06:25 PM

I had no issue with GHC but when I tried installing hugs I got there error it wasn't a valid win32 file. It might work if I try running as an administrator but I have GHC up and running and I'm happy :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1