Commit f10d8b56 authored by Shayne Fletcher's avatar Shayne Fletcher 🥝

Derive Ord instance for Extension

Metric Increase:
   T12150
   T12234
parent ec77b2f1
Pipeline #18250 passed with stages
in 704 minutes and 6 seconds
...@@ -145,3 +145,7 @@ data Extension ...@@ -145,3 +145,7 @@ data Extension
| CUSKs | CUSKs
| StandaloneKindSignatures | StandaloneKindSignatures
deriving (Eq, Enum, Show, Generic, Bounded) 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