diff options
author | Shayne Fletcher <shayne@shaynefletcher.org> | 2020-03-17 08:36:12 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-06-10 04:15:01 -0400 |
commit | 3b22b14a7a1c1819fc8682fc127acf7448c5630c (patch) | |
tree | fe56f1b630bf22c725fecde5deae113675915363 /compiler | |
parent | 7a737e898014d92bdbeed2e1cf5c35fc0a91a547 (diff) | |
download | haskell-3b22b14a7a1c1819fc8682fc127acf7448c5630c.tar.gz |
Give Language a Bounded instance
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/GHC/Driver/Flags.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/Flags.hs b/compiler/GHC/Driver/Flags.hs index d0b04713fb..8c1b090023 100644 --- a/compiler/GHC/Driver/Flags.hs +++ b/compiler/GHC/Driver/Flags.hs @@ -519,8 +519,7 @@ instance ToJson WarnReason where data Language = Haskell98 | Haskell2010 - deriving (Eq, Enum, Show) + deriving (Eq, Enum, Show, Bounded) instance Outputable Language where ppr = text . show - |