Questions tagged [hackage]

Hackage is the central package archive for open-source software in the Haskell programming language.

Hackage is the central package archive for open-source software in the Haskell programming language. Typical tools to fetch and install packages from hackage are and .

119 questions
12
votes
1 answer

Creating a Full Haskell Stack with Tests

I'm new to Haskell and I'm trying to structure a program under test. I have decided to use HUnit and Cabal. From what I have seen a well strucutred project looks the following: src/ AppName/ Appname.hs testsuite/ tests/ AppName/ …
GTDev
  • 5,488
  • 9
  • 49
  • 84
10
votes
2 answers

Searching for Reverse Dependencies on Hackage

Is there a way to search for Hackage packages that depend on package X (for any package X)? It would be great to find examples of how a package is used in the wild to get an idea of its capabilities. (Also useful for [attempting to] resolve cabal…
crockeea
  • 21,651
  • 10
  • 48
  • 101
10
votes
2 answers

Haskell: Flaw in the description of applicative functor laws in the hackage Control.Applicative article?: it says Applicative determines Functor

I think I found a flaw in the hackage article for Control.Applicative. As a description of the applicative functor laws, it says: class Functor f => Applicative f where A functor with application, providing operations to embed pure expressions…
gksato
  • 368
  • 1
  • 10
10
votes
1 answer

What does this warning message mean when I upload a module to HackageDB?

When I'm uploading a module to Hackage, I get the following error message: "Exposed modules use unallocated top-level names" I am declaring the module as an exposed module in the .cabal file. Is there anything else I should be doing?
Ben Hamner
  • 4,575
  • 4
  • 30
  • 50
9
votes
1 answer

Should I use stack to build and upload to Hackage?

Over time I've developed a messy system level Haskell installation that I'm not sure how to completely clean up. But for the most part this isn't of much concern as I simply use stack to manage per-project Haskell configurations. However as my…
orome
  • 45,163
  • 57
  • 202
  • 418
9
votes
3 answers

mysterious cabal-install problems

With a clean install of the "Haskell Platform". (OS X Snow-Leopard & Platform 2010.1.0.1), doing this causes simple sequence causes very weird cabal install behaviour: $ cabal install time $ cabal install random $ ghc-pkg list…
yairchu
  • 23,680
  • 7
  • 69
  • 109
8
votes
6 answers

What's the equivalent of Ruby's pnormaldist statistics function in Haskell?

As seen here: http://www.evanmiller.org/how-not-to-sort-by-average-rating.html Here's the Ruby code itself, implemented in the Statistics2 library: # inverse of normal distribution ([2]) # Pr( (-\infty, x] ) = qn -> x def pnormaldist(qn) b =…
Chris Bolton
  • 2,878
  • 6
  • 38
  • 57
8
votes
1 answer

Cabal usage (Haskell)

Cabal has dependency problems constantly. It's really tiring. So far I have tried to get many things working, here's my trying to install snap: $ sudo cabal install snap-server Resolving dependencies... cabal: cannot configure ListLike-1.1.0. It…
0atman
  • 3,298
  • 4
  • 30
  • 46
8
votes
1 answer

Is the Hackage document building queue visible?

After uploading a new version of a Haskell package to Hackage, automatic document building can take some time, during with the package lacks online documentation. I'd prefer not to announce package changes until such documentation has been built. Is…
orome
  • 45,163
  • 57
  • 202
  • 418
8
votes
1 answer

Triggering a documentation update for a Hackage package

I have two releases which were accidentally uploaded before some of their dependencies: http://hackage.haskell.org/package/pipes-cereal-plus-0.3.1 http://hackage.haskell.org/package/type-structure-0.1.0 Since then their dependencies have long been…
Nikita Volkov
  • 42,792
  • 11
  • 94
  • 169
7
votes
1 answer

Which Haskell library for interpolated strings

There are many different libraries on Hackage dealing with interpolated strings. Some have poor quality while other vary with number of features they support. Which ones are worth using? Examples of libraries (in no particular order): shakespeare,…
Tener
  • 5,280
  • 4
  • 25
  • 44
7
votes
0 answers

Find all modules importing a given module on Hackage

I'd like to find all modules on Hackage which import a given module from a given package. As an example of why this is useful, I'd like to see all modules that import Language.Haskell.HLint from the hlint package, since I want to deprecate that…
Neil Mitchell
  • 9,090
  • 1
  • 27
  • 85
7
votes
2 answers

How do I get documentation for my Haskell package onto Hackage?

UPDATE: This question is now out of date. Hackage now uses Haskell version 7.10.2 to build, so the following failure does not occur. The change also appears to have broken some of the scripts mentioned in the answers. How do I get…
orome
  • 45,163
  • 57
  • 202
  • 418
7
votes
2 answers

How do I create a suitable .tar.gz file for use with `cabal upload`?

The standard way to share a Haskell library with other programmers is to create a Cabal package and upload it to http://hackage.haskell.org. I've written a library I wish to share, and I've successfully created a Cabal package using the guidelines…
Norman Ramsey
  • 198,648
  • 61
  • 360
  • 533
7
votes
2 answers

Haskell, Hackage, GHC and productivity. What to do?

For a year I've been a rookie haskeller ("rookie haskeller" forever, I think). I have coded little haskell programs (eg. a very simple snake game) but package dependencies and ghc failed versions is hard for me when I have to use certain…
josejuan
  • 9,338
  • 24
  • 31