aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2018-09-04 17:44:34 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2018-09-04 17:44:34 -0400
commit4e377babaa6203c445607c4bb1cbfd42bd9c6c06 (patch)
treef3a5660b75204d9ab081b773efe0cad13d9cbe85 /src
parent67b5043c69648f0e4b9d9138a03cce154c20e38d (diff)
Remove `Eq Error` instance
It’s not clear what equality between errors should mean, so don’t support it.
Diffstat (limited to 'src')
-rw-r--r--src/BTLS/Result.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BTLS/Result.hs b/src/BTLS/Result.hs
index 4f0238a..a3c153c 100644
--- a/src/BTLS/Result.hs
+++ b/src/BTLS/Result.hs
@@ -47,7 +47,7 @@ data Error = Error
, line :: Int
, errorData :: Maybe ByteString
, flags :: CInt
- } deriving Eq
+ }
errorDataIsHumanReadable :: Error -> Bool
errorDataIsHumanReadable e = flags e .&. errFlagString == 1