Questions tagged [stackage]

Stackage is a stable source of Haskell packages.

Stackage is a stable source of Haskell packages.

https://www.stackage.org

44 questions
19
votes
3 answers

Is there a `stack run` similar to `cabal run`?

Up until recently, I was executing this beauty to build + run a project with stack: stack build && .stack-work/install/x86_64-linux/lts-4.1/7.10.3/bin/ I was told on IRC that this can be simplified to stack build && stack exec…
Wizek
  • 4,854
  • 2
  • 25
  • 52
10
votes
1 answer

What is the up-to-date standard workflow for building Haskell projects?

Since things change so fast, I've posted this question so hopefully the community-agreed way to start a Haskell project can be clarified. Imagine I have two separate projects: Project #1: Square, the library that squares numbers. No deps. --…
MaiaVictor
  • 51,090
  • 44
  • 144
  • 286
9
votes
2 answers

How to search for typeclass instances on Hoogle?

Is there a way to search for instances of a typeclass on Hoogle (or Stackage)? For instance, I want to know which package defines an instance of Lift for Text. I was able to find it in the package th-lift-instances, but it took about 10 minutes of…
illabout
  • 3,517
  • 1
  • 18
  • 39
8
votes
1 answer

How can I get GHC Core output via stack?

How do I get a stack build command to dump the GHC Core? I've tried this, to no avail: stack build :hello_world --ghc-options '-ddump-simpl'
dbanas
  • 1,707
  • 14
  • 24
8
votes
0 answers

How can I produce a statically linked Haskell binary with stack?

I want to build a static binary executable for a Haskell (it is important not to depend on any system libraries in my case). I use stack as my preferred build tool. Which flags should be set to achieve this? Bonus points for a brief explanation of…
flightlessbird
  • 413
  • 3
  • 9
7
votes
1 answer

List available stack build plans

How can I get the list of available build plans for stack? On some system I get lts-3.7 and some other I have lts-3.1.
Geekingfrog
  • 191
  • 1
  • 8
6
votes
0 answers

Mysterious Unicode output using GHC 9.0.1

Update: Keeping an eye in this bug in GHC 9.0.1 as the likely culprit. I'm seeing some strange Unicode behavior in my Haskell package when it builds under GHC 9.0.1. I understand that solving this may involve checking for changes in other Haskell…
orome
  • 45,163
  • 57
  • 202
  • 418
6
votes
0 answers

Haskell Stack Local Server

I am behind a firewall with strict rules about downloading software from the internet, so I would like to know if it is possible to download an entire stackage LTS snapshot in one go and serve it on a local server, to which we could then point the…
dpacbach
  • 121
  • 1
  • 6
6
votes
1 answer

Why doesn't stack add packages to the ghc package database?

I've decided to try giving stack a shot. I've installed it and used it to install the latest version of ghc. I've used stack to install some packages but the packages are not visible to ghc and when I list packages with ghc-pkg I see that the…
user467526
  • 517
  • 5
  • 19
5
votes
1 answer

VSCode editor got errors, while using Haskell installed using Stackage

Recently Installed VS Code in my Ubuntu14.04 . Installed Haskell using Stack. Getting these errors. Kindly help. Error: Couldn't start ghc-mod process Error: Command failed: ghc-mod version Error: Cannot hlint the haskell file. The hlint program was…
user1900238
  • 119
  • 3
  • 11
4
votes
1 answer

What does 'no specified version' mean in my Cabal build?

The recent Travis CI build of the development version of my Haskell package reports the error MissingH must match >=1.3.0.1, but the stack configuration has no specified version (latest matching version is 1.4.0.1) when building for GHC 8.6.1,…
orome
  • 45,163
  • 57
  • 202
  • 418
4
votes
1 answer

Why is Stackage currently stuck on cabal 1.18?

At the moment (Oct 24th, 2014) cabal 1.18 ships with Stackage, while cabal 1.20 is out since April 2014. I expect there is a reason for this: I'm curious to what that reason may be and hope that by this question I can get it out on a place that…
cies
  • 333
  • 1
  • 7
3
votes
1 answer

Installing glpk-hs

I've been trying to use glpk-hs in my Haskell project but I'm completely lost on how to do it. I'm using stack to run my program and my confusion most likely comes from my lack of knowledge on how it works. That being said, I've downloaded…
ohhisara
  • 67
  • 1
  • 5
3
votes
1 answer

How do you search across library versions in Haskell?

How do you find out which version(s) of a particular library includes a given definition? In my case, I noticed that gloss fails to install with the GLFW backend... Graphics\Gloss\Internals\Interface\Backend\GLFW.hs:12:45: error: Module…
SwiftsNamesake
  • 1,540
  • 2
  • 11
  • 25
3
votes
1 answer

How can I test a new ghc build against stackage

I've built ghc-HEAD and I want to try building all of a stackage lts or nightly to see how much it can do. Nothing I say can convince stack to build anything using my new ghc. I try setting up like: stack setup 8.1.20160209…
Michael Fox
  • 3,632
  • 1
  • 17
  • 27
1
2 3