Skip to content

Commit

Permalink
use per-instance OVERLAPS pragma instead of OverlappingInstances exte…
Browse files Browse the repository at this point in the history
…nsion
  • Loading branch information
msakai committed Sep 16, 2024
1 parent a4b72bd commit 3862ddc
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Codec/TPTP/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, StandaloneDeriving
, TypeSynonymInstances, FlexibleInstances, FlexibleContexts
, UndecidableInstances, DeriveDataTypeable, GeneralizedNewtypeDeriving
, OverlappingInstances, ScopedTypeVariables
, ScopedTypeVariables
#-}

module Codec.TPTP.Base where
Expand Down
6 changes: 3 additions & 3 deletions Codec/TPTP/Diff.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, StandaloneDeriving, MultiParamTypeClasses, FunctionalDependencies
, TypeSynonymInstances, FlexibleInstances, FlexibleContexts
, UndecidableInstances, DeriveDataTypeable, GeneralizedNewtypeDeriving
, OverlappingInstances, OverloadedStrings, RankNTypes
, OverloadedStrings, RankNTypes
#-}
{-# OPTIONS -Wall #-}

Expand Down Expand Up @@ -195,10 +195,10 @@ diffFormula (F (Identity f1)) (F (Identity f2)) = F $
_ -> let plug=plugSubformulae (T DontCare) (F DontCare) in Differ (plug f1) (plug f2)


instance Show (T DiffResult) where
instance {-# OVERLAPPING #-} Show (T DiffResult) where
show (T t) = show t

instance Show (F DiffResult) where
instance {-# OVERLAPPING #-} Show (F DiffResult) where
show (F f) = show f

type T0Diff = DiffResult (Term0 (T DiffResult))
Expand Down
2 changes: 1 addition & 1 deletion Codec/TPTP/Export.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, StandaloneDeriving
, TypeSynonymInstances, FlexibleInstances, FlexibleContexts
, UndecidableInstances, DeriveDataTypeable, GeneralizedNewtypeDeriving
, OverlappingInstances, RankNTypes
, RankNTypes
#-}
{-# OPTIONS -Wall #-}
module Codec.TPTP.Export(toTPTP',ToTPTP(..),isLowerWord) where
Expand Down
2 changes: 1 addition & 1 deletion Codec/TPTP/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, StandaloneDeriving
, TypeSynonymInstances, FlexibleInstances, FlexibleContexts
, UndecidableInstances, DeriveDataTypeable, GeneralizedNewtypeDeriving
, OverlappingInstances, RankNTypes, PatternGuards
, RankNTypes, PatternGuards
#-}

{-# OPTIONS -Wall -fno-warn-orphans #-}
Expand Down
2 changes: 1 addition & 1 deletion Codec/TPTP/QuickCheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, StandaloneDeriving
, TypeSynonymInstances, FlexibleInstances, FlexibleContexts
, UndecidableInstances, DeriveDataTypeable, GeneralizedNewtypeDeriving
, OverlappingInstances, RankNTypes, PatternGuards
, RankNTypes, PatternGuards
#-}
{-# OPTIONS -Wall #-}
module Codec.TPTP.QuickCheck where
Expand Down
1 change: 0 additions & 1 deletion testing/Prof.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
-XNamedFieldPuns
-XRecordWildCards
-XDeriveDataTypeable
-XOverlappingInstances
-fwarn-incomplete-patterns
#-}

Expand Down
2 changes: 1 addition & 1 deletion testing/SimpleArgs.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE FlexibleInstances, UndecidableInstances, OverlappingInstances #-}
{-# LANGUAGE FlexibleInstances, UndecidableInstances #-}

-- Copied and modified from https://hackage.haskell.org/package/simpleargs-0.2.1
-- which is licensed under GNU LESSER GENERAL PUBLIC LICENSE Version 2.1
Expand Down

0 comments on commit 3862ddc

Please sign in to comment.