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
1
vote
1 answer

Specify gcc compiler flags while downloading Haskell bindings to a c-library from Hackage

I want to install bindings to the Minisat solver for satisfiability problems available here on Hackage. When I tried doing cabal install minisat-solver at the command-line on a Linux work-station, I got the following output user@home: $ cabal…
smilingbuddha
  • 14,334
  • 33
  • 112
  • 189
1
vote
1 answer

How to create a package to upload to Hackage?

How do I generate the appropriate package file? The hackage upload page has a link to: https://www.haskell.org/cabal/users-guide/installing-packages.html#setup-sdist but after reading that I'm still unsure. I've tried: cabal setup sdist cabal:…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
1
vote
1 answer

Can Stack make sure that dependencies aren't tampered with?

One problem with Cabal is that it pulls packages from Hackage, and as it's been discussed some time ago, there are many ways how a piece of malicious code can get in. Does Stack improve the situation and does it take any precautions against that? Is…
Petr
  • 62,528
  • 13
  • 153
  • 317
1
vote
1 answer

What Cabal version should I have for my inter-release development branch?

I have a (potentially public) development branch for a Haskell project that I also release to Haddock. The head of my release branch always (naturally) has a .cabal file with a version corresponding to the current Haddock version. But what version…
orome
  • 45,163
  • 57
  • 202
  • 418
1
vote
1 answer

How can I `cabal install` every package on hackage with a custom plugin

I'm working on a custom ghc plugin. In order to test it out, I want to run it on every package on hackage. I'm running into two difficulties with this. First, I need to pass the -fplugin=MyPlugin option to ghc when installing packages. The only…
Mike Izbicki
  • 6,286
  • 1
  • 23
  • 53
1
vote
1 answer

Hackage - Where is the MonadReader implementation for ReaderT defined?

I seem unable to find where two relatively simple Haskell methods are defined. It's about ReaderT. I am looking for its implementation of ask and local, as requested by the MonadReader contract. At…
Marco Faustinelli
  • 3,734
  • 5
  • 30
  • 49
1
vote
1 answer

Regular Expression on Yesod type Text

Currently, I am changing my Text to String then using Text.Regex.Posix to do my matching. Is there a idiomatic and efficient way to do regular expression in Yesod?
HHC
  • 2,513
  • 2
  • 18
  • 26
1
vote
1 answer

Do you know a Haskell package for dirent.h on Windows?

Do you know a Haskell package for dirent.h on Windows? There is similar set of functions in system.posix but those functions are not implemented on Windows. I wonder if there is similar somewhere else. Thanks.
Aftershock
  • 5,205
  • 4
  • 51
  • 64
1
vote
1 answer

hackage showing incorrect dependencies for library package with executable sections

Hackage shows the union of the dependencies of the Library section as well as all Executable sections, even when I conditionally hide them behind a flag set to false. I've only found this ancient, supposedly-fixed bug which claims that specifying…
jberryman
  • 16,334
  • 5
  • 42
  • 83
1
vote
2 answers

Fail to install Hackage string-conversions

Problem I was installing the Hackage string-conversions. However, it fails with the error below. Error Log Configuring string-conversions-0.3.0.3... Building string-conversions-0.3.0.3... Preprocessing library string-conversions-0.3.0.3... [1 of 1]…
Gavin
  • 4,458
  • 3
  • 24
  • 37
1
vote
2 answers

Ambiguous occurence `unsafePerformIO' when installing binary-strict

I'm trying to cabal install binary-strict and I get this error: src/Data/Binary/BitBuilder.hs:205:37: Ambiguous occurrence `unsafePerformIO' It could refer to either `Foreign.unsafePerformIO', imported from `Foreign' at…
jaybee
  • 1,897
  • 2
  • 16
  • 29
1
vote
1 answer

Couldn't match type `binary-0.5.1.1:Data.Binary.Get.Get' with `Get'

Today I am going to write a binary STL file parser and start with the following code: import Data.Binary.Get import Data.Word import Control.Monad import Data.Bits import Data.Binary.IEEE754 data Vector3 = Vector3 { x :: Float, y :: Float, z ::…
Earth Engine
  • 10,048
  • 5
  • 48
  • 78
1
vote
1 answer

Trouble installing hstats library from hackage using cabal

When I try to install the hstats package $ cabal install hstats I get the following error: src/Math/Statistics.hs:1:1: Ambiguous module name `Prelude': it was found in multiple packages: base haskell98-2.0.0.2 Failed to install…
BinRoot
  • 694
  • 2
  • 8
  • 21
1
vote
1 answer

Why Hoogle is not working under EclipseFP on my machine?

Environment: Windows 8 x64 Behind HTTP proxy Eclipse Version: Kepler Service Release 1 Build id: 20130919-0819 EclipseFP 2.5.4 correctly installed and working Haskell Platform 2013.2 Environment variable http_proxy is set correctly Machine has…
The_Ghost
  • 2,070
  • 15
  • 26
0
votes
1 answer

Haskell: Cannot install OpenGL due to missing dependencies (which are already installed there)

I am trying to install the OpenGL-2.4.0.2 package manually, but after I download the tarball from Hackage and decompressed it, when I ran sudo runhaskell Setup.hs configure I get these: Configuring OpenGL-2.4.0.2... Setup.hs: At least the following…
zw324
  • 26,764
  • 16
  • 85
  • 118