haskell-stack

How do I build stack configuration that allows me to build project with reflex-frp as dependency?

徘徊边缘 提交于 2019-12-24 09:56:30
问题 As in question. I can't get working stack configuration. I want to build project that uses reflex with ghc, preferably 8.0.2 or higher. How do I do it, cause specifying it as an extra deps doesn't seem to work either.. 回答1: Looks like no published version of reflex supports ghc 8.0.2. There are a lot of changes on the develop branch since the 0.4 release: https://github.com/reflex-frp/reflex/compare/cc62c11a6cde31412582758c236919d4bb766ada...develop So first I tried this: resolver: lts-9.5

How to show progress of `stack haddock`?

百般思念 提交于 2019-12-24 08:19:01
问题 Ran stack haddock haskell-src-exts I get: haskell-src-exts-1.20.3: configure haskell-src-exts-1.20.3: build haskell-src-exts-1.20.3: haddock And I've been waiting around for an hour but it still hasn't finished. Adding --haddock-arguments --verbosity=3 doesn't seem to change anything. It would be really nice to have some sort of progress indicator so I can know if it's stuck or just slow. $ stack --version Version 1.9.1, Git revision f9d0042c141660e1d38f797e1d426be4a99b2a3c (6168 commits) x86

stack install curl fails

核能气质少年 提交于 2019-12-24 04:30:05
问题 I am trying to install curl via stack using stack install curl-1.3.8 -v , and I am stuck with the following error: 2019-10-06 19:01:22.673216: [info] curl> Configuring curl-1.3.8... 2019-10-06 19:01:22.910469: [warn] curl> setup: Missing dependency on a foreign library: 2019-10-06 19:01:22.910594: [warn] curl> * Missing (or bad) C library: curl 2019-10-06 19:01:22.910679: [warn] curl> This problem can usually be solved by installing the system package that 2019-10-06 19:01:22.910776: [warn]

`stack ghci` fails when you include a project which imports Gloss

假装没事ソ 提交于 2019-12-23 18:00:30
问题 If you import Gloss within a Stack project and use stack ghci , you get the following error: GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help <command line>: can't load .so/.DLL for: /Users/v/hs/.stack-work/install/x86_64-osx/lts-3.7/7.10.2/lib/x86_64-osx-ghc-7.10.2/GLUT-2.7.0.3-FFXiDYE1CfiDHjNKroBerv/libHSGLUT-2.7.0.3-FFXiDYE1CfiDHjNKroBerv-ghc7.10.2.dylib (dlopen(/Users/v/hs/.stack-work/install/x86_64-osx/lts-3.7/7.10.2/lib/x86_64-osx-ghc-7.10.2/GLUT-2.7.0.3

Why can I load a module in GHCi, while Atom can't find it?

我的梦境 提交于 2019-12-23 17:56:32
问题 I'm using Haskell with Stack and Atom on Windows 10. Sometimes, I like to just write a stand-alone .hs file to play around with various things. When I do that, I prefer to interact with it using GHCi. Usually, I start it from Git Bash: $ stack ghci --color never From here, I can add modules: Prelude> :m +Data.Vector.Unboxed Prelude Data.Vector.Unboxed> In Atom, however, I'm having trouble with that particular package: Open Atom Create a new .hs file Add this following content to it and hit

stack ghci not loading up local modules?

回眸只為那壹抹淺笑 提交于 2019-12-23 16:32:50
问题 I have mainLogger.hs Logger.hs in my local directory where the mainLogger.hs reference the Logger module. When in stack ghci I :load mainLogger.hs I get the following error message : mainLogger.hs:6:18: Could not find module ‘Logger’ It is not a module in the current program, or in any known package. However if I can compile stack exec -- ghc mainLogger.hs and run stack runghc mainLogger2.hs or have stack exec -- ghci load the module correctly. Anyone knows what is preventing stack ghci from

Stack gives 'dyld: malformed mach-o'

佐手、 提交于 2019-12-23 13:07:19
问题 When I attempt to run stack, for example even just stack --version , I get dyld: malformed mach-o: load commands size (38712) > 32768 What can I do to fix this. This started appearing after some recent updates to Homebrew. 回答1: I'm guessing you've upgraded to macOS Sierra, because that message looks like you're hitting a new limit in its dynamic linker. Might be that your stack executable is dynamically linked with all the Haskell libraries it uses, which is known to exceed the new limit. You

How can I increase the stack size with runhaskell?

旧城冷巷雨未停 提交于 2019-12-23 07:27:17
问题 I'm writing some disposable Haskell scripts to solve some of the Project Euler problems. I don't really want to have to compile them because of the number of changes I'm constantly having to make, but in a few cases I've found that I've run out of stack space. The documentation for runhaskell says that the following syntax should increase the stack space: runhaskell +RTS -K5M -RTS Script.hs This never, ever works (in any permutation I've tried). The stack size always remains 8,388,608. This

Workflow for using stack to test Hackage packages (not in Stackage)

落花浮王杯 提交于 2019-12-22 14:47:38
问题 What is the workflow for using stack to preform an isolated download and install (for testing and experimentation) of a Haskell package that's in Hackage, but not in Stackage? For example stack new tester cd tester # Then add the package PKG to 'extra-deps' stack build . --force-dirty is not sufficient, and results in errors ("not a module in the current program, or in any known package") when an import of part of the package is attempted. Explicitly building the package (which seems like it

How to add documentation after packages have already been installed?

旧巷老猫 提交于 2019-12-22 10:39:46
问题 I have installed a bunch of packages to the snapshot database. I would now like a local copy of their documentation (even better if it's with hyperlinked source). Is there a way I can tell stack to run haddock on all of them? EDIT (copied from my answer): It seems that the obvious stack haddock package will install haddock for the package, so $ cd ~/.stack/snapshots/x86_64-linux/lts-3.0/7.10.2/doc $ stack haddock * seems to do what I want, with two downsides: I'll still need to remember to