Skip to content

Instantly share code, notes, and snippets.

@kosmikus
Created October 8, 2018 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kosmikus/4320feebe756df97c636abd39cb5d7c0 to your computer and use it in GitHub Desktop.
Save kosmikus/4320feebe756df97c636abd39cb5d7c0 to your computer and use it in GitHub Desktop.
Bug in ghc-8.6.1
{-# 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