Skip to content

Instantly share code, notes, and snippets.

@ndmitchell
Created May 11, 2018 18:43
Show Gist options
  • Save ndmitchell/c459bedb655252235e097803580a713f to your computer and use it in GitHub Desktop.
Save ndmitchell/c459bedb655252235e097803580a713f to your computer and use it in GitHub Desktop.
4-file GHC bug
{-# LANGUAGE DisambiguateRecordFields #-}
import Rec3
import Rec2
bug = AnDouble{an=1}
{-# LANGUAGE TypeFamilies #-}
module Rec2 where
import Rec4
data instance An Double = AnDouble {an :: Double}
deriving Show
{-# LANGUAGE TypeFamilies #-}
module Rec3 where
import Rec4
data instance An Int = AnInt {an :: Int}
{-# 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