Last active
December 26, 2017 22:38
-
-
Save kcsongor/5493fb9f7a209d7aeb9606d442a2db69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE ImpredicativeTypes #-} | |
{-# LANGUAGE TypeFamilies #-} | |
module BrokenStar where | |
type family Break a where | |
Break (a -> b) = (a, b) | |
broken :: Break (Applicative f => a -> f a) | |
broken = undefined | |
-- >>> :t broken | |
-- broken :: (Applicative f, a -> f a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment