Can I add extra Haskell library packages to Haskell for Mac?

Yes, this is possible after installing the command line tools from the "Command Line" tab of the app preferences.

Everything is ready and configured to install packages from LTS Haskell as well as local packages whose dependencies are covered by LTS Haskell. After installing the command lines tools, there is a new menu called "Target", which includes a Package Manager.

Have more questions? Submit a request

4 Comments

  • 0
    Avatar
    Kris Shannon

    After you run 'cabal instal' how can you get the package recognised by the Haskell for Mac app?

    e.g.

    'cabal install yesod' worked without any errors

    Adding 'import Yesod' in the GUI comes up with:

    "Could not find module ‘Yesod’
    Use -v to see a list of the files searched for."

  • 0
    Avatar
    Manuel Chakravarty

    You may have to close and re-open the project after you did the installation (or simply re-start Haskell for Mac). (This is somewhat annoying, I am sorry. We will improve this in the future.)

  • 0
    Avatar
    Konstantin Solomatov

    Is it possible to make it install in a different location? Or at least provide some uninstaller. IMO, it's a bad practice to propose to install something which is hard to uninstall.

  • 0
    Avatar
    Manuel Chakravarty

    Thank you for the feedback. We install in /usr/local/bin as this will be picked up without requiring users to alter the PATH variable (to accomodate users who are less familiar with Unix tools). However, you are right in that we need to provide an uninstaller. 

    BTW, this article has further details on the command line tools and their installation: http://community.hfm.io/hc/en-us/articles/216666257-Usage-of-the-command-line-tools

Please sign in to leave a comment.
Powered by Zendesk