nh2 / nh2/hemokit

Problem compiling / Not in scope: type constructor or class ‘NFData’

Open
#9 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
32
Forks
14
PR merge metrics
No merged PRs in 30d

Description

While trying to install hemokit on an up-to-date (ghc v8.0.1) Arch Linux system I got the following error message(s):

```
[...]
src/Hemokit.hs:530:10: error:
Not in scope: type constructor or class ‘NFData’
Perhaps you meant ‘Data’ (imported from Data.Data)
cabal: Leaving directory '.'
cabal: Error: some packages failed to install:
hemokit-0.6.6 failed during the building phase. The exception was:
ExitFailure 1
```

I could fix it by adding the following line again in _./src/Hemokit.hk_:

```
import Control.DeepSeq
```

That line was previously changed to `import Control.DeepSeq.Generics` in 83c208d but it seems both lines are required now.

---

Other than that, I also had to remove the **executable hemokit-mouse** section in the _hemokit.cabal_ file. Its dependency on `robot`, which in turn depends on `xhb`, could not satisfied: the installation of `xhb` fails on my system with the error message

```
Ambiguous occurrence ‘putInt8’
```

So far, I have no idea how to fix this but it's definitely an upstream bug in xhb.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.