Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cis194: Homework seven not running under GHC 8.10.2 #149

Open
Time0o opened this issue Dec 25, 2020 · 0 comments
Open

cis194: Homework seven not running under GHC 8.10.2 #149

Time0o opened this issue Dec 25, 2020 · 0 comments

Comments

@Time0o
Copy link

Time0o commented Dec 25, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant