]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/Postprocess.hs
Each instances of StatusCode should not be an instance of Eq.
[Lucu.git] / Network / HTTP / Lucu / Postprocess.hs
index 29c3c5167cb375accbce646038b110a4a0b0b601..09665c62c4fe9e2c6f8ee398fbcc1a9c53f5cfb4 100644 (file)
@@ -47,15 +47,15 @@ abortOnCertainConditions (NI {..})
                    $ A.toAsciiBuilder "Inappropriate status code for a response: "
                    ⊕ printStatusCode resStatus
 
-               when ( toStatusCode resStatus ≡ Just MethodNotAllowed ∧
-                      hasHeader "Allow" res )
+               when ( resStatus ≈ MethodNotAllowed ∧
+                      hasHeader "Allow" res        )
                    $ abort'
                    $ A.toAsciiBuilder "The status was "
                    ⊕ printStatusCode resStatus
                    ⊕ A.toAsciiBuilder " but no \"Allow\" header."
 
-               when ( toStatusCode resStatus ≢ Just NotModified  ∧
-                      isRedirection resStatus ∧
+               when ( resStatus ≉ NotModified  ∧
+                      isRedirection resStatus  
                       hasHeader "Location" res )
                    $ abort'
                    $ A.toAsciiBuilder "The status code was "