-
-
Save deemp/a2cdea6d49f4b11f007d77ed665ec911 to your computer and use it in GitHub Desktop.
Export constructors to be promoted
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
module A (P(..)) where | |
data P = MkP |
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 DataKinds #-} | |
module A1 (MkP1) where | |
import A (P(..)) | |
type MkP1 = MkP |
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 DataKinds #-} | |
module A2 (MkP1) where | |
import A (P(..)) | |
type MkP1 = MkP |
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
module B where | |
import A1(MkP1) | |
import A2(MkP1) | |
-- must disambiguate | |
type M = A1.MkP1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment