Last active
May 16, 2019 13:16
-
-
Save RyanGlScott/2404f1cee58152e1dd483d5b37a5ab7d 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 ConstraintKinds #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE NamedWildCards #-} | |
{-# LANGUAGE PartialTypeSignatures #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE TypeApplications #-} | |
{-# OPTIONS_GHC -Wno-partial-type-signatures #-} | |
module Foo where | |
import Data.Kind | |
import Data.Proxy | |
type HasKind (a :: k) = (() :: Constraint) | |
f :: HasKind @[_] a => Proxy a | |
f = Proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment