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

Necessary Extension Missing for 10.2 #17

Open
JonathanLorimer opened this issue Sep 8, 2019 · 0 comments
Open

Necessary Extension Missing for 10.2 #17

JonathanLorimer opened this issue Sep 8, 2019 · 0 comments

Comments

@JonathanLorimer
Copy link
Contributor

JonathanLorimer commented Sep 8, 2019

Need to add {-# LANGUAGE TypeOperators #-} to the necessary extensions at the beginning of 10.2 on pg. 126.

Everything works fine except for MapList pg. 129 and Foldr pg. 130 which depend on a promoted cons operator ': for example:

data FoldR :: (a -> b -> Exp b) -> b -> [a] -> Exp b
type instance Eval' (FoldR _ z '[]) = z
type instance Eval' (FoldR f z (x ': xs)) =
  Eval' (f x (Eval' (FoldR f z xs)))

I would create a PR myself, but I can't figure out how your TeX preamble is pulling code from your Haskell files

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