Created
November 28, 2020 16:22
-
-
Save ryantrinkle/0e28bc1e458f71fd69462c7581d4ec60 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
data Numtype a = Numtype a | |
type family GetNumtype (n :: Numtype a) :: a where | |
GetNumtype ('Numtype a) = a | |
numtype :: forall (a :: Numtype *) (r :: *). (Num (GetNumtype a) => r) -> r | |
numtype = undefined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment