Eisen
Eisen

Reputation: 141

How to save that

I am self learning haskell from here. I do not understand anything when the author says "Save this as baby.hs". What I have to save and how I can save that?

Upvotes: 3

Views: 3340

Answers (1)

TomHastjarjanto
TomHastjarjanto

Reputation: 5408

  1. Open your favorite text editor
  2. Type: doubleMe x = x + x
  3. save the file as baby.hs
  4. go to the directory where you saved the file and launch ghci
  5. type: :l baby

Upvotes: 7

Related Questions