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

Add Comonad instances for Tagged s with s of any kind #43

Merged
merged 1 commit into from Feb 26, 2018
Merged

Add Comonad instances for Tagged s with s of any kind #43

merged 1 commit into from Feb 26, 2018

Conversation

vlopezj
Copy link
Contributor

@vlopezj vlopezj commented Feb 26, 2018

Before the change, s had to be of kind *.

The new instances are obtained by enabling the PolyKinds extension in the
Control.Comonad module.

@@ -3,6 +3,9 @@
{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving, Safe, DefaultSignatures #-}
#elif __GLASGOW_HASKELL__ >= 702
{-# LANGUAGE Trustworthy, DefaultSignatures #-}
#endif
#if __GLASGOW_HASKELL__ >= 706
{-# LANGUAGE KindSignatures, PolyKinds #-}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to enable KindSignatures—that's implied by PolyKinds.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Fixed.

Before the change, `s` had to be of kind `*`.

The new instances are obtained by enabling the `PolyKinds` language
extension in the `Control.Comonad` module.
@RyanGlScott RyanGlScott merged commit 162c665 into ekmett:master Feb 26, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants