haskell-stack

stack build on macOS

白昼怎懂夜的黑 提交于 2020-04-13 06:29:49
问题 I am new to haskell . I have the simplest of simple programs. #!/usr/bin/env stack -- stack --resolver lts-13.7 script module Main where import Lib main :: IO () main = putStrLn "Hello World" It does work for stack $stack ./Main.hs Hello World (base) 19:48:11/app $ But it suffers a rather gruesome demise on anything more extravagent: $stack build --test --haddock --no-haddock-hyperlink-source; Stack has not been tested with GHC versions above 8.6, and using 8.8.3, this may fail Stack has not

stack build on macOS

♀尐吖头ヾ 提交于 2020-04-13 06:29:29
问题 I am new to haskell . I have the simplest of simple programs. #!/usr/bin/env stack -- stack --resolver lts-13.7 script module Main where import Lib main :: IO () main = putStrLn "Hello World" It does work for stack $stack ./Main.hs Hello World (base) 19:48:11/app $ But it suffers a rather gruesome demise on anything more extravagent: $stack build --test --haddock --no-haddock-hyperlink-source; Stack has not been tested with GHC versions above 8.6, and using 8.8.3, this may fail Stack has not

Haskell Stack doesn't use system Ghc

旧时模样 提交于 2020-03-18 12:32:08
问题 I'm trying to use Haskell Stack to setup a project but using the stack provided ghc I am having a -fPIC error GitHub issue To bypass the fPIC problem I'm trying to use a package manager provided GHC using the 7.10.3 version (stack currently is using 8.0.2) When I try to force stack to use the systm ghc it simply ignores me. I've tried to override using /home/user/.stack/config.yaml and {project}/stack.yaml system-ghc : true option... but stack use the 8.0.2 version in the setup. Am I missing

Why is the COPY instruction causing a cache miss in my Docker build

試著忘記壹切 提交于 2020-02-21 07:04:32
问题 The copy instruction in the docker file for my project seems to cause a cache miss, even though none of the files being copied have changed since the image was last pushed to docker hub. This causes all subsequent layers to miss the cache which makes the build take much longer than it should. I've also noticed that the hashes belonging to each layer seem to be different than what they are when I docker build on my local machine. Could this be because of a docker version mismatch? What is

Why is the COPY instruction causing a cache miss in my Docker build

拜拜、爱过 提交于 2020-02-21 07:03:35
问题 The copy instruction in the docker file for my project seems to cause a cache miss, even though none of the files being copied have changed since the image was last pushed to docker hub. This causes all subsequent layers to miss the cache which makes the build take much longer than it should. I've also noticed that the hashes belonging to each layer seem to be different than what they are when I docker build on my local machine. Could this be because of a docker version mismatch? What is

“macOS_SDK_headers_for_macOS_10.14.pkg is incompatible with this version of macOS” while installing Haskell on OS X mojave

大兔子大兔子 提交于 2020-02-20 10:32:59
问题 While running the following code block, $ cd /Library/Developer/CommandLineTools/Packages/ $ open macOS_SDK_headers_for_macOS_10.14.pkg The installer warned This package is incompatible with this version of macOS and may fail to install. And when I choose 'Install Anyway', it fails. How can I possibly get it work? Some possibly relevant environmental versions: OS: macOS 10.14.5 xcodebuild -version: Xcode 11.2.1 gcc --version: gcc (Homebrew GCC 9.2.0_1) 9.2.0 Bigger Context: I was setting up

“macOS_SDK_headers_for_macOS_10.14.pkg is incompatible with this version of macOS” while installing Haskell on OS X mojave

半城伤御伤魂 提交于 2020-02-20 10:31:08
问题 While running the following code block, $ cd /Library/Developer/CommandLineTools/Packages/ $ open macOS_SDK_headers_for_macOS_10.14.pkg The installer warned This package is incompatible with this version of macOS and may fail to install. And when I choose 'Install Anyway', it fails. How can I possibly get it work? Some possibly relevant environmental versions: OS: macOS 10.14.5 xcodebuild -version: Xcode 11.2.1 gcc --version: gcc (Homebrew GCC 9.2.0_1) 9.2.0 Bigger Context: I was setting up

stack build results in “output was redirected with -o, but no output will be generated because there is no Main module.”

孤街浪徒 提交于 2020-01-11 03:50:07
问题 Didn't see any relevant result when google searching for this error so thought I'd post it. stack build Building all executables for `gitchapter' once. After a successful build of all of them, only specified executables will be rebuilt. gitchapter-0.1.0.0: build (exe) Preprocessing executable 'app' for gitchapter-0.1.0.0.. Building executable 'app' for gitchapter-0.1.0.0.. Preprocessing executable 'test' for gitchapter-0.1.0.0.. Warning: Enabling workaround for Main module 'Main' listed in

`gcc.exe' failed in phase `C Compiler'. (Exit code: 1)

亡梦爱人 提交于 2020-01-07 08:11:10
问题 When Cabal or Stack install hackage the error message like title. Full mes is: cabal install ghc-mod realgcc.exe: error: C:\Users\浠ユ亽\AppData\Local\Temp\4118467.c: No such file or directory realgcc.exe: warning: '-x c' after last input file has no effect realgcc.exe: fatal error: no input files compilation terminated. gcc.exe' failed in phase C Compiler'. (Exit code: 1) 回答1: Try doing 'stack setup--reinstall'. I had a similar message cleaned up this way. 来源: https://stackoverflow.com

How to build Stack Yesod?

孤街浪徒 提交于 2020-01-07 06:49:46
问题 I've been trying to use stack to start a yesod-simple project, but nothing I do will build this project. I've looked into other similar stackoverflow questions but couldn't get this to work. Can some one help me figure out what I need to do to get started? Error > stack build Populated index cache. yesod-persistent-1.4.0.6: configure yesod-persistent-1.4.0.6: build yesod-persistent-1.4.0.6: copy/register yesod-form-1.4.9: configure yesod-form-1.4.9: build yesod-form-1.4.9: copy/register yesod