Commit d6a81840 authored by Shayne Fletcher's avatar Shayne Fletcher

Derive Ord instance for Extension

parent 7550417a
Pipeline #17027 failed with stages
in 384 minutes and 35 seconds
......@@ -144,3 +144,7 @@ data Extension
| CUSKs
| StandaloneKindSignatures
deriving (Eq, Enum, Show, Generic, Bounded)
-- 'Ord' and 'Bounded' are provided for GHC API users (see discussions
-- in https://gitlab.haskell.org/ghc/ghc/merge_requests/2707 and
-- https://gitlab.haskell.org/ghc/ghc/merge_requests/826).
instance Ord Extension where compare a b = compare (fromEnum a) (fromEnum b)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment