git.iko.soy/typeable/servant
on master help sign in
Add instances for IsSecure
commit76e74f9d5a91364df6d3b191d6d1a42810ff2c9f authorJulian K. Arni <jkarni@gmail.com> dateWed 7 Sep 2016, 12:31 (10 years ago) parent29af0bb
2 files changed+7−1
servant/CHANGELOG.md+4 servant/src/Servant/API/IsSecure.hs+3−1
servant/CHANGELOG.md+4
@@ -1,3 +1,7 @@
1+next
2+----
3+* Added Eq, Show, Read, Generic and Ord instances to IsSecure
4+
150.8.1
26----
37
servant/src/Servant/API/IsSecure.hs+3−1
@@ -1,10 +1,12 @@
11{-# LANGUAGE DeriveDataTypeable #-}
2+{-# LANGUAGE DeriveGeneric #-}
23module Servant.API.IsSecure
34 ( -- $issecure
45 IsSecure(..)
56 ) where
67
78import Data.Typeable
9+import GHC.Generics (Generic)
810
911-- | Was this request made over an SSL connection?
1012--
@@ -19,7 +21,7 @@ data IsSecure = Secure -- ^ the connection to the server
1921 -- is secure (HTTPS)
2022 | NotSecure -- ^ the connection to the server
2123 -- is not secure (HTTP)
22− deriving Typeable
24+ deriving (Eq, Show, Read, Generic, Ord, Typeable)
2325
2426-- $issecure
2527--