Questions tagged [hackage]
Hackage is the central package archive for open-source software in the Haskell programming language.
1
vote
1answer
39 views
Using Hackage libraries
I am just starting out with Haskell .I am using stack to build my applcation.
I am trying to use this library from hackage .
http://hackage.haskell.org/package/pkcs10-0.2.0.0/docs/Data-X509-PKCS10....
1
vote
1answer
46 views
How do I get my nightly Haskell package into Stackage LTS?
Though the latest version of my package is appearing as expected in Stackage Nightly, it is not appearing in LTS, and instead an older version is appearing there. How do I get the latest version to ...
0
votes
0answers
7 views
How do I include a Retina image in my Haddock documentation?
I have an image in the Haddock documentation for my Haskell package that I would like to have at suitable resolution for a Retina display, but when I try a higher resolution image, it ends up being ...
0
votes
1answer
28 views
Why does Hackage link a module to a different source file?
I am trying to understand the structure of the base package as displayed by Hackage. Following https://en.wikibooks.org/wiki/Haskell/Modules a module name must reflect the path to its source; to quote ...
0
votes
0answers
41 views
ghc (Haskell) not finding package - do I need to explicitly change where it is loading?
I'm loading the third party project https://github.com/jordanspooner/haskell-web-crawler.
In one of the source files, there is the import command
import Data.Aeson
From which I get the ...
0
votes
0answers
43 views
How can I keep my Haskell package in LTS without MissingH?
Since GHC 8.6.1, MissingH is no longer included in Stackage LTS nightly, apparently because of incompatibilities between MissingH and Control.Monad.Fail.MonadFail. Specifically, if I try to build my ...
1
vote
1answer
88 views
Using Haskell Time library ISO8601 format
I'm using the Haskell Time Library. I'm trying to use the ISO-8601 date formatters.
In my code, I can import the Data.Time module and use it without any problems.
However, when I import the Data.Time....
0
votes
1answer
118 views
Haskell Cabal packing install fail
I wiped and reinstalled the Haskell platform (Haskell.org: cabal, stack, ghc), but now no addon package will install properly. Cabal always end with ExitFailure1. Probably because not being able to ...
-2
votes
1answer
53 views
Where do Cabal & Stack fetch Hackage packages from?
I am interested in creating a tool for Hackage involving analysis of the various dependencies between Hackage's packages. I am thinking this would involve downloading and syncing a mirror of all ...
2
votes
1answer
67 views
Why isn't my documentation showing up in Hackage?
Documentation for my recently updated package on Hackage isn't showing up, even though it has now been a few days since the update. The previous version had complete documentation, and I've made no ...
7
votes
0answers
81 views
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 ...
14
votes
4answers
269 views
How do I determine reasonable package dependency bounds when releasing a Haskell library?
When releasing a library on Hackage, how can I determine reasonable bounds for my dependencies?
It's a very brief question - not sure what additional information I can provide.
It would also be ...
2
votes
1answer
43 views
How to get updated upper bounds for a Hackage package?
A common problem with upper bounds is that package authors being uncertain opt for conservative upper bounds of their dependencies (e.g. base). This tends to be an unpopular choice for users which may ...
2
votes
1answer
68 views
Haddock - Data record fields names not being generated
I'm having trouble getting haddock to display the field names of my data records. Some of my data types have many different numeric values, so documenting the names is key.
An example data record:
--...
4
votes
1answer
55 views
How is the new “DL” ranking in the Hackage package search calculated?
The Hackage package search as of now doesn't just give a list of all matches as it used to do, but allows sorting them in various ways. Notably, it is now possible to sort by rating, i.e. by how ...
1
vote
1answer
151 views
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 ...
0
votes
1answer
162 views
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 ...
0
votes
0answers
44 views
`Either` with a Semigroup on the left [duplicate]
Does something like this already exist or should I package it up for Hackage (I find it useful for collecting errors):
module EitherSemigroup where
import Prelude hiding (Right, Left)
import Data....
5
votes
1answer
117 views
Managing hackage releases
Currently, when I want to update one of my hackage packages, I go through this process.
Push the changes to github
Wait for travis-ci to run on the changes, to ensure I'm not getting any build errors....
3
votes
1answer
96 views
Which dialect of Markdown does Hackage use to render READMEs?
Hackage has been able to display Markdown READMEs for a while.
But as one can see for example on the Hackage page for hpack, Hackage doesn't seem to support the same table syntax as GitHub.
Markdown:...
5
votes
1answer
472 views
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-...
0
votes
1answer
328 views
Cabal failing to install network-2.6.3.1 on Linux
In short I am fairly new to the Haskell world and am having an issue installing a package with a dependency on network-2.6.3.1.
cabal install happstack-server
Resolving dependencies...
Configuring ...
6
votes
2answers
1k views
Does a useful Haskell HashMap/HashTable/Dictionary library exist?
I'm looking for a monad-free, constant access query O(1) associative array.
Consider the hypothetical type:
data HT k v = ???
I want to construct an immutable structure once:
fromList :: Foldable ...
4
votes
1answer
96 views
Are modules expected to stabilize over time on Hackage?
To newcomers it might be surprising that many modules on Hackage are marked as experimental, even modules as basic as Data.Bool.
Is there any process or expectation for modules to become stable and ...
2
votes
1answer
623 views
Remove Stack/Cabal packages and install older versions
I'm new to Haskell and am using Stack to build a small personal project on Mac OSX. I've recently added some new build-deps to my cabal file but now when I run stack build, I get the following error:
...
0
votes
2answers
77 views
Haskell how to get code from Hackage into project? Cabal install project failed
I created a project in hackage that I want to import into my code.
Rather than manually copy-pasting the code from "print-debugger-0.0.tar.gz" into the src folder of my cabal project, I want to be ...
1
vote
1answer
40 views
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 ...
5
votes
2answers
341 views
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. (...
8
votes
1answer
72 views
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 ...
0
votes
1answer
34 views
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 ...
6
votes
2answers
713 views
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
...
1
vote
1answer
94 views
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 ...
1
vote
1answer
171 views
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 ...
2
votes
1answer
33 views
source database for testing optimizer
I need to test my haskell optimizer on a collection of source code, and I'm currently trying to run the optimizer on the packages tagged as program on hackage. However it is a pain in the neck to ...
0
votes
1answer
71 views
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?
3
votes
1answer
73 views
How to tell if a haskell sourcecode has Bang
Is there any library function that tells if a given .hs file uses strictness annotation? Or do I have to go into the syntax tree?
1
vote
1answer
50 views
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, ...
13
votes
1answer
73 views
Find earliest package version with function X
So I'm sitting here wondering why the hell I can't find the function I'm looking for, and it turns out it doesn't exist in the version of the package I have installed.
So how do I make Hackage tell ...
10
votes
2answers
332 views
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 ...
2
votes
1answer
122 views
How do I know who to blame for hackage inconsistencies
Trying to install criterion, I run into troubles with other packages that I rely on wanting to be reinstalled. Reinstalling them breaks everything (I've tried).
$ cabal install criterion
Resolving ...
1
vote
2answers
46 views
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...
...
0
votes
1answer
130 views
Can't install haskell package http-enumerator
Got the following bash transcript when run cabal install.
It looks it complainted many packages required by http-enumerator is not available. I am not sure what "Backjump" mean in the last line of ...
2
votes
1answer
143 views
hackage-server fails to build - are there specific ghc/cabal version requirements?
I am trying to build and run a copy of the Hackage server https://github.com/haskell/hackage-server. I followed the instructions here https://github.com/haskell/hackage-server/wiki and also the ...
2
votes
1answer
81 views
How to install a dev branch into a Cabal Sandbox
I have a project in a Cabal sandbox. There is a package I would like to use but the one on Hackage isn't suitable. There is an alternative dev branch that should meet my needs that the author has on ...
1
vote
2answers
119 views
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',
...
0
votes
2answers
339 views
A suspicious PHP file might
I'm searching for your help today to get some help about a file I founded in my FTP this morning. I'm not a professionnal in all those PHP functions so this is why I post it here.
The thing I found ...
6
votes
1answer
135 views
Configure cabal upload to work with local hackage-server
I have a local hackage-server installed for development at 192.168.1.100:8080. After I develop, and package a package with cabal sdist I have to head to 192.168.1.100:8080 on my browser and manually ...
-1
votes
2answers
417 views
Haskell - create instance of class (how to do it right?)
I read the chapter about that topic in "learn you a haskell" and tried to find some hints on different websites - but are still unable to solve the following task.
Im a haskell newbie (6 weeks of "...
1
vote
1answer
84 views
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 ...
8
votes
1answer
166 views
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....