@@ -586,7 +586,7 @@ instance Ord FixDecl where
588data Static = Static | Dynamic
588data Static = Static | Dynamic
589− deriving (Show, Eq, Data, Generic, Typeable)
589+ deriving (Show, Eq, Ord, Data, Generic, Typeable)
591deriving instance Binary Static
591deriving instance Binary Static
@@ -609,7 +609,7 @@ data Plicity = Imp { pargopts :: [ArgOpt]
609 , pstatic :: Static
609 , pstatic :: Static
610 , pscript :: PTerm
610 , pscript :: PTerm
612− deriving (Show, Eq, Data, Generic, Typeable)
612+ deriving (Show, Eq, Ord, Data, Generic, Typeable)
615deriving instance Binary Plicity
615deriving instance Binary Plicity
@@ -1040,7 +1040,7 @@ updateNs ns t = mapPT updateRef t
1040data PunInfo = IsType
1040data PunInfo = IsType
1041 | IsTerm
1041 | IsTerm
1042 | TypeOrTerm
1042 | TypeOrTerm
1043− deriving (Eq, Show, Data, Typeable, Generic)
1043+ deriving (Eq, Show, Ord, Data, Typeable, Generic)
1045-- | High level language terms
1045-- | High level language terms
1046data PTerm = PQuote Raw -- ^ Inclusion of a core term into the
1046data 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
1106 | PConstSugar FC PTerm
1106 | PConstSugar FC PTerm
1107 -- ^ A desugared constant. The FC is a precise source
1107 -- ^ A desugared constant. The FC is a precise source
1108 -- location that will be used to highlight it later.
1108 -- location that will be used to highlight it later.
1109− deriving (Eq, Data, Typeable, Generic)
1109+ deriving (Eq, Ord, Data, Typeable, Generic)
1111data PAltType = ExactlyOne Bool -- ^ flag sets whether delay is allowed
1111data PAltType = ExactlyOne Bool -- ^ flag sets whether delay is allowed
1112 | FirstSuccess
1112 | FirstSuccess
1113 | TryImplicit
1113 | TryImplicit
1114− deriving (Eq, Data, Generic, Typeable)
1114+ deriving (Eq, Ord, Data, Generic, Typeable)
1116-- | Transform the FCs in a PTerm. The first function transforms the
1116-- | Transform the FCs in a PTerm. The first function transforms the
1117-- general-purpose FCs, and the second transforms those that are used
1117-- general-purpose FCs, and the second transforms those that are used
@@ -1230,7 +1230,7 @@ data PTactic' t = Intro [Name] | Intros | Focus Name
1230 | TFail [ErrorReportPart]
1230 | TFail [ErrorReportPart]
1231 | Qed | Abandon
1231 | Qed | Abandon
1232 | SourceFC
1232 | SourceFC
1233− deriving (Show, Eq, Functor, Foldable, Traversable, Data, Generic, Typeable)
1233+ deriving (Show, Eq, Ord, Functor, Foldable, Traversable, Data, Generic, Typeable)
1235deriving instance Binary PTactic'
1235deriving instance Binary PTactic'
@@ -1276,7 +1276,7 @@ data PDo' t = DoExp FC t
1276 | DoBindP FC t t [(t,t)]
1276 | DoBindP FC t t [(t,t)]
1277 | DoLet FC Name FC t t -- ^ second FC is precise name location
1277 | DoLet FC Name FC t t -- ^ second FC is precise name location
1278 | DoLetP FC t t
1278 | DoLetP FC t t
1279− deriving (Eq, Functor, Data, Generic, Typeable)
1279+ deriving (Eq, Ord, Functor, Data, Generic, Typeable)
1281deriving instance Binary PDo'
1281deriving instance Binary PDo'
@@ -1316,13 +1316,13 @@ data PArg' t = PImp { priority :: Int
1316 , getScript :: t
1316 , getScript :: t
1317 , getTm :: t
1317 , getTm :: t
1319− deriving (Show, Eq, Functor, Data, Generic, Typeable)
1319+ deriving (Show, Eq, Ord, Functor, Data, Generic, Typeable)
1321data ArgOpt = AlwaysShow
1321data ArgOpt = AlwaysShow
1322 | HideDisplay
1322 | HideDisplay
1323 | InaccessibleArg
1323 | InaccessibleArg
1324 | UnknownImp
1324 | UnknownImp
1325− deriving (Show, Eq, Data, Generic, Typeable)
1325+ deriving (Show, Eq, Ord, Data, Generic, Typeable)
1327instance Sized a => Sized (PArg' a) where
1327instance Sized a => Sized (PArg' a) where
1328 size (PImp p _ l nm trm) = 1 + size nm + size trm
1328 size (PImp p _ l nm trm) = 1 + size nm + size trm