@@ -37,10 +37,6 @@ import qualified Data.ByteString.Char8 as BS.C8
37
37
import qualified Data.ByteString.Base16 as Base16
38
38
import qualified Data.ByteString.Lazy as BS.L
39
39
40
- #if !MIN_VERSION_base(4,7,0)
41
- import qualified Data.Typeable as Typeable
42
- #endif
43
-
44
40
import Hackage.Security.Util.JSON
45
41
import Hackage.Security.Util.Some
46
42
import Hackage.Security.Util.TypedEmbedded
@@ -277,26 +273,3 @@ instance ReportSchemaErrors m => FromJSON m (Some KeyType) where
277
273
case tag of
278
274
" ed25519" -> return . Some $ KeyTypeEd25519
279
275
_otherwise -> expected " valid key type" (Just tag)
280
-
281
- {- ------------------------------------------------------------------------------
282
- Orphans
283
-
284
- Pre-7.8 (base 4.7) we cannot have Typeable instance for higher-kinded types.
285
- Instead, here we provide some instance for specific instantiations.
286
- -------------------------------------------------------------------------------}
287
-
288
- #if !MIN_VERSION_base(4,7,0)
289
- tyConKey , tyConPublicKey , tyConPrivateKey :: Typeable. TyCon
290
- tyConKey = Typeable. mkTyCon3 " hackage-security" " Hackage.Security.Key" " Key"
291
- tyConPublicKey = Typeable. mkTyCon3 " hackage-security" " Hackage.Security.Key" " PublicKey"
292
- tyConPrivateKey = Typeable. mkTyCon3 " hackage-security" " Hackage.Security.Key" " PrivateKey"
293
-
294
- instance Typeable (Some Key ) where
295
- typeOf _ = Typeable. mkTyConApp tyConSome [Typeable. mkTyConApp tyConKey [] ]
296
-
297
- instance Typeable (Some PublicKey ) where
298
- typeOf _ = Typeable. mkTyConApp tyConSome [Typeable. mkTyConApp tyConPublicKey [] ]
299
-
300
- instance Typeable (Some PrivateKey ) where
301
- typeOf _ = Typeable. mkTyConApp tyConSome [Typeable. mkTyConApp tyConPrivateKey [] ]
302
- #endif
0 commit comments