bitemyapp / bitemyapp/learnhaskell

cis194: Homework seven not running under GHC 8.10.2

Open
#149 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Makefile
Stars
8k
Forks
549
PR merge metrics
No merged PRs in 30d

Description

Executing `runhaskell StringBufEditor.hs` from Yorgey's seventh homework with GHC 8.10.2 results in:

```
Editor.hs:38:22: error:
• No instance for (Applicative (Editor b))
arising from the 'deriving' clause of a data type declaration
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
• When deriving the instance for (Monad (Editor b))
|
38 | deriving (Functor, Monad, MonadIO, MonadState (b,Int))
|
```

A fix could be provided or at least a remark included in the cis194 section.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.