diff options
author | Tom Smeding <tom@tomsmeding.com> | 2025-10-02 14:07:53 +0200 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2025-10-02 14:07:53 +0200 |
commit | ef72e54cf6bcee7124058364fea15b4d1bd62cd7 (patch) | |
tree | 90981bbae6b4be2cc075c65c792a560c44b3b05b /src/GHC/TypeLits/Orphans.hs | |
parent | 22a3d9c5cbafb7a633f2f802af884d042718e78d (diff) |
Compatibility with GHC 9.6
Diffstat (limited to 'src/GHC/TypeLits/Orphans.hs')
-rw-r--r-- | src/GHC/TypeLits/Orphans.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/GHC/TypeLits/Orphans.hs b/src/GHC/TypeLits/Orphans.hs new file mode 100644 index 0000000..42f7293 --- /dev/null +++ b/src/GHC/TypeLits/Orphans.hs @@ -0,0 +1,13 @@ +-- | Compatibility module adding some additional instances not yet defined in +-- base-4.18 with GHC 9.6. +{-# OPTIONS -Wno-orphans #-} +module GHC.TypeLits.Orphans where + +import GHC.TypeLits + + +instance Eq (SNat n) where + _ == _ = True + +instance Ord (SNat n) where + compare _ _ = EQ |