Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5955647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:08:37+00:00 2026-05-22T18:08:37+00:00

I have just installed Haskell Platform for Windows (version 2011.2.0.1), and started to work

  • 0

I have just installed Haskell Platform for Windows (version 2011.2.0.1), and started to work through the HaskellQuestions.pdf

The second question requires “x = 3” as the answer. But when I enter this into GHCi I get

GHCi, version 7.0.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> x = 3

<interactive>:1:3: parse error on input `='
Prelude>

Why? I checked the answer, and I am right. Whats the matter with the equals sign?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:08:38+00:00Added an answer on May 22, 2026 at 6:08 pm

    In GHCi, to assign a value, you have to go

    let x = 3
    

    In regular Haskell code, x = 3 would be valid (see NB below).

    Real World Haskell‘s Getting Started page has lots of useful info about using GHCI.

    You can also look at the documentation for GHCi (but personally, I find Real World Haskell a little more digestable).

    N.B. As EdvardM notes in the comments, the syntax for using let in this context is from Haskell’s do notation (if you’re just beginning, don’t stress yourself out if you’re a little lost. Take your time, have fun, and it ought to make sense in no time).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just installed the Platform SDK for Windows Server 2008 and .NET 3.5
I have just installed that latest stable release of TortoiseSVN on Windows Server 2003
Have just installed Windows Phone 7 CTP (Visual Studio 2010 Express) When I deploy
I have just installed the Windows SDK v7.1 (MSVC 10.0) and running my code
I just installed WAMP on Windows XP. I have a simple PHP file that
I have just installed the .NET 3.5 Framework to my Windows 2003 server and
I have just installed MongoDB in my machine (Windows 7) and installed node-mongodb-native using
I have just installed SSMS tools pack from http://www.ssmstoolspack.com everything seems to work except
I have just installed a ASP.Net Mvc application on a windows server 2008. When
I have just installed JDK on Windows Vista. After that I set proper values

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.