-
-
Save phadej/539de5929c6acad3b8e2fa60fbf68f14 to your computer and use it in GitHub Desktop.
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 GADTs, DataKinds, TypeOperators #-} | |
import Data.Type.Equality | |
data Exists where | |
MkExists :: a -> Exists | |
thm :: 'MkExists 'True :~: 'MkExists 'False | |
thm = Refl | |
{- | |
Exi.hs:9:7: error: | |
• Couldn't match type ‘'True’ with ‘'False’ | |
Expected type: 'MkExists 'True :~: 'MkExists 'False | |
Actual type: 'MkExists 'True :~: 'MkExists 'True | |
• In the expression: Refl | |
In an equation for ‘thm’: thm = Refl | |
| | |
9 | thm = Refl | |
| ^^^^ | |
-} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment