Created
October 8, 2018 18:15
-
-
Save kosmikus/4320feebe756df97c636abd39cb5d7c0 to your computer and use it in GitHub Desktop.
Bug in ghc-8.6.1
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 TypeFamilies #-} | |
module TypeFamilies where | |
type family A (x :: *) :: * where | |
A x = x | |
type family B (x :: *) :: * where | |
A x = x -- note A, not B !! | |
-- ghc-8.6.1 accepts this program, whereas ghc-8.4.3 reports an error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment