Skip to content

Instantly share code, notes, and snippets.

@kcsongor
Last active December 26, 2017 22:38
Show Gist options
  • Save kcsongor/5493fb9f7a209d7aeb9606d442a2db69 to your computer and use it in GitHub Desktop.
Save kcsongor/5493fb9f7a209d7aeb9606d442a2db69 to your computer and use it in GitHub Desktop.
{-# 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