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

Issues getting code from OpenSums to compile #18

Open
JonathanLorimer opened this issue Sep 10, 2019 · 1 comment
Open

Issues getting code from OpenSums to compile #18

JonathanLorimer opened this issue Sep 10, 2019 · 1 comment

Comments

@JonathanLorimer
Copy link
Contributor

JonathanLorimer commented Sep 10, 2019

Relevent pages 138-141

import Fcf is not found, and if you get rid of that you are hit with other errors when you implement

type FindElem (key :: k) (ts :: [k])
   = FromMaybe Stuck =<< FindIndex (TyEq key) ts

there are three errors:

 error:
    Not in scope: type constructor or class ‘Stuck’
   |
33 |    = FromMaybe Stuck =<< FindIndex (TyEq key) ts
   |                ^^^^^
/Users/jonathan.l/Documents/thinking-with-types/src/CH11.hs:33:22-24: error:
    Not in scope: type constructor or class ‘=<<’
   |
33 |    = FromMaybe Stuck =<< FindIndex (TyEq key) ts
   |                      ^^^
/Users/jonathan.l/Documents/thinking-with-types/src/CH11.hs:33:26-34: error:
    Not in scope: type constructor or class ‘FindIndex’
   |
33 |    = FromMaybe Stuck =<< FindIndex (TyEq key) ts
   |                          ^^^^^^^^^
@isovector
Copy link
Owner

Try adding first-class-families to your dependencies

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

2 participants