Created
November 18, 2020 16:55
-
-
Save googleson78/33047443af2e6cd3c8ebd6891c6d84ec 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 AllowAmbiguousTypes #-} | |
{-# LANGUAGE FlexibleContexts #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE TypeFamilies #-} | |
type family Ambiguous (a :: k) :: b where | |
Ambiguous x = x | |
toInteger' :: Integral (Ambiguous a) => Ambiguous a -> Integer | |
toInteger' = toInteger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment