@@ -586,7 +586,7 @@ instance Ord FixDecl where
586586
587587
588588data Static = Static | Dynamic
589− deriving (Show, Eq, Data, Generic, Typeable)
589+ deriving (Show, Eq, Ord, Data, Generic, Typeable)
590590{-!
591591deriving instance Binary Static
592592!-}
@@ -609,7 +609,7 @@ data Plicity = Imp { pargopts :: [ArgOpt]
609609 , pstatic :: Static
610610 , pscript :: PTerm
611611 }
612− deriving (Show, Eq, Data, Generic, Typeable)
612+ deriving (Show, Eq, Ord, Data, Generic, Typeable)
613613
614614{-!
615615deriving instance Binary Plicity
@@ -1040,7 +1040,7 @@ updateNs ns t = mapPT updateRef t
10401040data PunInfo = IsType
10411041 | IsTerm
10421042 | TypeOrTerm
1043− deriving (Eq, Show, Data, Typeable, Generic)
1043+ deriving (Eq, Show, Ord, Data, Typeable, Generic)
10441044
10451045-- | High level language terms
10461046data PTerm = PQuote Raw -- ^ Inclusion of a core term into the
@@ -1106,12 +1106,12 @@ data PTerm = PQuote Raw -- ^ Inclusion of a core term into the
11061106 | PConstSugar FC PTerm
11071107 -- ^ A desugared constant. The FC is a precise source
11081108 -- location that will be used to highlight it later.
1109− deriving (Eq, Data, Typeable, Generic)
1109+ deriving (Eq, Ord, Data, Typeable, Generic)
11101110
11111111data PAltType = ExactlyOne Bool -- ^ flag sets whether delay is allowed
11121112 | FirstSuccess
11131113 | TryImplicit
1114− deriving (Eq, Data, Generic, Typeable)
1114+ deriving (Eq, Ord, Data, Generic, Typeable)
11151115
11161116-- | Transform the FCs in a PTerm. The first function transforms the
11171117-- general-purpose FCs, and the second transforms those that are used
@@ -1230,7 +1230,7 @@ data PTactic' t = Intro [Name] | Intros | Focus Name
12301230 | TFail [ErrorReportPart]
12311231 | Qed | Abandon
12321232 | SourceFC
1233− deriving (Show, Eq, Functor, Foldable, Traversable, Data, Generic, Typeable)
1233+ deriving (Show, Eq, Ord, Functor, Foldable, Traversable, Data, Generic, Typeable)
12341234{-!
12351235deriving instance Binary PTactic'
12361236!-}
@@ -1276,7 +1276,7 @@ data PDo' t = DoExp FC t
12761276 | DoBindP FC t t [(t,t)]
12771277 | DoLet FC Name FC t t -- ^ second FC is precise name location
12781278 | DoLetP FC t t
1279− deriving (Eq, Functor, Data, Generic, Typeable)
1279+ deriving (Eq, Ord, Functor, Data, Generic, Typeable)
12801280{-!
12811281deriving instance Binary PDo'
12821282!-}
@@ -1316,13 +1316,13 @@ data PArg' t = PImp { priority :: Int
13161316 , getScript :: t
13171317 , getTm :: t
13181318 }
1319− deriving (Show, Eq, Functor, Data, Generic, Typeable)
1319+ deriving (Show, Eq, Ord, Functor, Data, Generic, Typeable)
13201320
13211321data ArgOpt = AlwaysShow
13221322 | HideDisplay
13231323 | InaccessibleArg
13241324 | UnknownImp
1325− deriving (Show, Eq, Data, Generic, Typeable)
1325+ deriving (Show, Eq, Ord, Data, Generic, Typeable)
13261326
13271327instance Sized a => Sized (PArg' a) where
13281328 size (PImp p _ l nm trm) = 1 + size nm + size trm