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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:20:41+00:00 2026-05-23T09:20:41+00:00

I want to use in my haskell project xml library (http://hackage.haskell.org/package/xml) I downloaded it.then

  • 0

I want to use in my haskell project xml library (http://hackage.haskell.org/package/xml)

I downloaded it.then try to build and install:

runhaskell Setup.hs configure

runhaskell Setup.hs build

runhaskell Setup.hs install

All ok. There are no errors. When i try import modules from this lib to my project, for example:

import Text.XML.Light.Cursor

I get error:

/home/shk/dev/src/XMPP.hs:8:8:
    Could not find module `Text.XML.Light.Cursor':
      Use -v to see a list of the files searched for.
Failed, modules loaded: none.

What’s wrong? How can i install and use library in haskell?

Thank you.

  • 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-23T09:20:42+00:00Added an answer on May 23, 2026 at 9:20 am

    Copying from the mailing list:

    First thing is to do ‘ghc-pkg list’.  If your package doesn’t show up
    then it’s not installed, according to the package registry.  ‘cabal
    install’ should have registered it.  If it is in the list, then it
    depends how you’re building.  If you use ghc manually, then you have
    to give ‘-package xyz’.  If you use ‘ghc –make’, ghc will
    automatically add the -package for you.  If you use cabal, you put the
    package in the dependencies, and ‘cabal build’ will add -package for
    you.

    If the package has parens, then someone hid it, and you’ll have to do
    ‘ghc-pkg expose’ on it.  If you’re doing everything else right and it
    still doesn’t find the package, then you can run ghc -v and it’ll
    print lots of details.  It might have something about ‘hiding xyz
    because of ‘, which means you’re depending on
    libraries that expect different versions of the underlying library.
    You can sometimes get out of this by carefully upgrading or
    downgrading certain libraries.

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

Sidebar

Related Questions

I read this: http://hackage.haskell.org/trac/ghc/wiki/ViewPatterns I like the idea, want to use the extension. I
I maintain the augeas FFI library at http://hackage.haskell.org/package/augeas Recently augeas added an aug_to_xml method
I want to use a Haskell function with the following type :: string ->
I want to call haskell functions out of C++ and did use the tutorial
I want to use Haskell in production. It has a lot of libraties but
The Haskell wiki states that you should use Cabal as your build system. However,
I've got a name clash between two different Haskell modules that want to use
I want to use some Haskell libraries (e.g. Darcs, Pandoc) from Python, but it
I'm lookin for a portable wiimote library. I want to use the wiimote for
I'm hoping to use either Haskell or OCaml on a new project because R

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.