Skip to content

Commit 2403e21

Browse files
committed
Remove pragma for anything < ghc906
1 parent 4758ca6 commit 2403e21

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

libs/cardano-data/src/Data/Universe.hs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ module Data.Universe (
4444

4545
import Data.Kind (Type)
4646
import Data.Type.Equality (TestEquality (..), (:~:) (Refl))
47-
#if __GLASGOW_HASKELL__ < 906
48-
import Type.Reflection (TypeRep, pattern App, pattern Con, pattern Fun)
49-
#else
50-
-- Ghc-9.6 removed the Fun constructor.
5147
import Type.Reflection (TypeRep, pattern App, pattern Con)
52-
#endif
5348

5449
-- ==================================================
5550

@@ -181,15 +176,6 @@ compareTypeRep (App x a) (App y b) =
181176
case compareTypeRep x y of
182177
EQ -> compareTypeRep a b
183178
other -> other
184-
#if __GLASGOW_HASKELL__ < 906
185-
-- Ghc-9.6 removed the Fun constructor making these redundant.
186-
compareTypeRep (App _ _) _ = LT
187-
compareTypeRep _ (App _ _) = GT
188-
compareTypeRep (Fun x a) (Fun y b) =
189-
case compareTypeRep x y of
190-
EQ -> compareTypeRep a b
191-
other -> other
192-
#endif
193179

194180
instance Singleton TypeRep where
195181
testEql = testEquality

0 commit comments

Comments
 (0)