diff options
author | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2014-08-01 21:57:18 +0200 |
---|---|---|
committer | Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> | 2014-08-01 21:57:18 +0200 |
commit | 7843136fb05c71f2a0c8e7cd4980ecf1b951ffbe (patch) | |
tree | b63c3af2fa6c7d0013c93f978b5035d9df9738e1 /src | |
parent | 827a57f66a2ea0087d5eae9de75abae27edbce29 (diff) |
Remove unnecessary FunctionalDependency
This fixes cobit/bittorrent#7 for GHC 7.8.3: 7.8.3 fixed
FunctionalDependencies so the existing instances are no longer allowed
and in fact FD is not necessary there at all.
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/KRPC/Method.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Network/KRPC/Method.hs b/src/Network/KRPC/Method.hs index 10f988b8..ea9da958 100644 --- a/src/Network/KRPC/Method.hs +++ b/src/Network/KRPC/Method.hs | |||
@@ -9,7 +9,6 @@ | |||
9 | -- | 9 | -- |
10 | {-# LANGUAGE RankNTypes #-} | 10 | {-# LANGUAGE RankNTypes #-} |
11 | {-# LANGUAGE MultiParamTypeClasses #-} | 11 | {-# LANGUAGE MultiParamTypeClasses #-} |
12 | {-# LANGUAGE FunctionalDependencies #-} | ||
13 | {-# LANGUAGE GeneralizedNewtypeDeriving #-} | 12 | {-# LANGUAGE GeneralizedNewtypeDeriving #-} |
14 | {-# LANGUAGE ScopedTypeVariables #-} | 13 | {-# LANGUAGE ScopedTypeVariables #-} |
15 | {-# LANGUAGE DefaultSignatures #-} | 14 | {-# LANGUAGE DefaultSignatures #-} |
@@ -75,7 +74,7 @@ showsMethod (Method name) = | |||
75 | -- @ | 74 | -- @ |
76 | -- | 75 | -- |
77 | class (Typeable req, BEncode req, Typeable resp, BEncode resp) | 76 | class (Typeable req, BEncode req, Typeable resp, BEncode resp) |
78 | => KRPC req resp | req -> resp where | 77 | => KRPC req resp where |
79 | 78 | ||
80 | -- | Method name. Default implementation uses lowercased @req@ | 79 | -- | Method name. Default implementation uses lowercased @req@ |
81 | -- datatype name. | 80 | -- datatype name. |