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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:06:14+00:00 2026-05-19T05:06:14+00:00

again a total newbie question from me about Haskell, and Leskah. (First, a subjective

  • 0

again a total newbie question from me about Haskell, and Leskah.

(First, a subjective compliment for Haskell lovers: at each come back for a learning session of Haskell I like it more and more. I hope this will go on for long :-). Latest pleasure has been Leskah’s sugar for auto transforming symbols into math. It makes code looks really nice. But well that’s not the point… )

I wanted to organize my learner package into several files.
But I didn’t succeed in adding a second file e.g. Second.hs, containing other definitions, to my current package build unit. I have added it in Leskah/Edit Package/Extra Files. But this doesnt seem to do the job. More over I feel as it it was a little bit akward to add each of any new file this way ( thru Leskah/Edit Package/Extra Files ).

Anyway as a result all that is built is still only the content my Main.hs. I am surely missing some point ?!

Another question is, in C++, I heavily use namespace so as to sort my object definitions by subject/goal. What is the equivalent of namespace in Haskell ? A module ? A package ?

  • 1 1 Answer
  • 3 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-19T05:06:15+00:00Added an answer on May 19, 2026 at 5:06 am

    Regarding to leksah: you can add new module through the Browser panel. Just right click and select “Add module” from the context menu (Note: enter module name, but not a file name in the dialog). Adding modules from Package Editor is designed just to add existent module to the cabal file. (If you don’t know what “cabal” means, then it is a good time to google it 🙂 )

    Regarding to namespace. I think the nearest equivalent is module. You can just import module to add definitions to current context. Alternatively you can import module qualified, in that case you will have to qualify definitions from the module. Also you can “alias” module name when importing it.

    import Module1
    import qualified Modile2
    import Module3 as M3
    import qualified Modile4 as M4
    

    Package is equivalent to compiled library in C/C++.

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

Sidebar

Related Questions

Warning. This is a total newbie question for Groovy.. I'm from a Java background
Again a SED question from me :) So, same as last time, I'm wrestling
Hello again ladies and gents! OK, following on from my other question on ASP.NET
I have total 3 activities. First activity(A) starts second activity(B). From Activity B, 3rd
Again I have a question regarding this plugin: http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ What I want to achieve
Again I'm moving from Xcode 3 to 4 and finding that some things are
Yet again, my teacher was unable to answer my question. I knew who may
Once again a very beginner-ish question, but here I go: I would like to
Ok, this is a total newb question, so please forgive me. What is the
I'm back again as I'm waiting for the coffee to kick in and have

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.