agrafix / agrafix/highjson

highjson-0.4.0.0 build failure with GHC 8.4

未关闭
#2 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Haskell
星标
11
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Add semigroup instances
See also: https://ghc.haskell.org/trac/ghc/wiki/Migration/8.4#SemigroupMonoidsuperclasses

```
[2 of 2] Compiling Data.HighJson ( src/Data/HighJson.hs, .stack-work/dist/x86_64-osx/Cabal-2.2.0.1/build/Data/HighJson.o )

/Users/dan/scratch/highjson-0.4.0.0/src/Data/HighJson.hs:49:10: error:
• Could not deduce (Semigroup (a :& b))
arising from the superclasses of an instance declaration
from the context: (Monoid a, Monoid b)
bound by the instance declaration at src/Data/HighJson.hs:49:10-48
• In the instance declaration for ‘Monoid (a :& b)’
|
49 | instance (Monoid a, Monoid b) => Monoid (a :& b) where
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```

I was able to reproduce this locally like so:

```bash
stack unpack highjson-0.4.0.0 && cd highjson-0.4.0.0
echo 'resolver: nightly-2018-05-10' > stack.yaml
stack build --test --bench --no-run-benchmarks
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start with src/Data/HighJson.hs, especially the Monoid instance at line 49 and the GHC 8.4 error shown in the issue. Reproduce the failure with the supplied stack unpack and build commands using resolver nightly-2018-05-10. Done means highjson-0.4.0.0 builds successfully with the test and benchmark flags under GHC 8.4.

由索引模型根据 Issue 内容生成。

评估

技术栈
haskell
领域
backend
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
52/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。