This file contains hidden or 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, PolyKinds, StandaloneKindSignatures, TypeFamilies, UndecidableInstances #-} | |
import GHC.TypeLits | |
import Data.Kind | |
-- This is the proposed API for Warning/WarningBin | |
type Warning :: Symbol -> WarningBin -> ErrorMessage -> Constraint | |
class Warning flag bin msg |
This file contains hidden or 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 #-} | |
{-# LANGUAGE OverloadedLabels #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
import qualified Data.ByteString.Char8 as BS | |
import Data.Kind | |
import Data.Proxy | |
import GHC.OverloadedLabels |
This file contains hidden or 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 GHC2021, NoScopedTypeVariables, RequiredTypeArguments, AllowAmbiguousTypes #-} | |
import Data.Proxy | |
hasScopedTypeVariables :: Bool | |
hasScopedTypeVariables = f Char | |
f :: forall a -> C a => Bool | |
f a = g @Int | |
where |
OlderNewer