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 9156149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:43:09+00:00 2026-06-17T12:43:09+00:00

This is what I have, doubleMe :: int->int doubleMe x = x + x

  • 0

This is what I have,

doubleMe :: int->int
doubleMe x = x + x

And when I run it on notepad++

ghc hw.hs
Process started >>>
[1 of 1] Compiling Main             ( hw.hs, hw.o )

hw.hs:1:1: The function main' is not defined in module `Main'
<<< Process finished.
================ READY ================

how do i make this program so its interactive?

  • 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-06-17T12:43:09+00:00Added an answer on June 17, 2026 at 12:43 pm

    Currently, you’re running the program with ghc. What you want to do is first run ghci and then use the :load command to load your file. Something like this:

    Prelude> :load blarg.hs
    

    You can also load the file when calling the command: ghci blarg.hs. This might work better with Notepad++ than using :load from the GHCi prompt.

    GHCi is the command for running the Haskell REPL, which lets you interactively evaluate expressions.

    I don’t have Notepad++ handy to check, but I’m sure there is some way to tell it to run ghci in the background and load files into it instead of using ghc directly.

    If there isn’t, you can always just run ghci in its own terminal window. In this case, you can use the :r command to reload a file after you’ve loaded it for the first time. This will save you quite a bit of typing. (:r vs :load blarg.hs)

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

Sidebar

Related Questions

I have right now this code: <ul><li class=listitem>text<li></ul> jQuery: $('.listitem').click(function() { $(#elname).text($(this).text()); $('#slists').css('visibility','hidden') $('#elname').css('visibility','visible')
I know questions like this have been asked numerous times, but not quite this
I have huge query on my SQL 2005 Server. This have to be run
I know questions like this have been asked before, but I'm not sure how
Questions similar to this have been asked before on SO, but they're not quite
I realize how many times this have been talked about but I have not
I need to do something like this: Have a variable of some type. Run
I am using Hover indent plugin, This have only one function to combine mouse
I have this Javascript function: function Card(term, def, terms, curTerm) { this.term = term;
I have a project which has a calling structure similar to this: main project/application

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.