diff --git a/hledger-lib/Text/Megaparsec/Custom.hs b/hledger-lib/Text/Megaparsec/Custom.hs index c71df3e7a..e43defa0d 100644 --- a/hledger-lib/Text/Megaparsec/Custom.hs +++ b/hledger-lib/Text/Megaparsec/Custom.hs @@ -2,7 +2,6 @@ {-# LANGUAGE LambdaCase #-} {-# LANGUAGE PackageImports #-} {-# LANGUAGE ScopedTypeVariables #-} -{-# LANGUAGE StandaloneDeriving #-} module Text.Megaparsec.Custom ( -- * Custom parse error type @@ -67,8 +66,6 @@ data CustomErr -- derive it, but this requires an (orphan) instance for 'ParseError'. -- Hopefully this does not cause any trouble. -deriving instance (Eq (Token c), Ord (Token c), Ord c, Ord e) => Ord (ParseError c e) - instance ShowErrorComponent CustomErr where showErrorComponent (ErrorFailAt _ _ errMsg) = errMsg errorComponentLen (ErrorFailAt startOffset endOffset _) =