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…
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.
--…
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…
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…
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…
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…
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…
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…
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,…
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…
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…
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…
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…