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

Traced law not well-typed? #100

Closed
Thimoteus opened this issue Aug 20, 2017 · 2 comments
Closed

Traced law not well-typed? #100

Thimoteus opened this issue Aug 20, 2017 · 2 comments

Comments

@Thimoteus
Copy link
Contributor

specifically track s <<= track t x = track (s <> t) x.

I was trying to prove one of my own instances was law-abiding but ran into trouble here:

track s <<= track t x = extend (track s) (track t x), where extend :: (w a -> b) -> w a -> w b and yet the second argument to extend has type track t x :: b and not w b as expected.

@paf31
Copy link
Contributor

paf31 commented Aug 22, 2017

I think it should be (track s =<= track t) x = track (s <> t) x

@Thimoteus
Copy link
Contributor Author

I believe it, since my instance obeys it. Thanks!

@garyb garyb closed this as completed in 97cb780 Aug 22, 2017
garyb added a commit that referenced this issue Aug 22, 2017
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