Created
May 11, 2018 18:43
-
-
Save ndmitchell/c459bedb655252235e097803580a713f to your computer and use it in GitHub Desktop.
4-file GHC bug
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 DisambiguateRecordFields #-} | |
import Rec3 | |
import Rec2 | |
bug = AnDouble{an=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 Rec2 where | |
import Rec4 | |
data instance An Double = AnDouble {an :: Double} | |
deriving Show |
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 Rec3 where | |
import Rec4 | |
data instance An Int = AnInt {an :: Int} |
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 Rec4 where | |
data family An c :: * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment