module Network.AWS.Data.Internal.Sensitive where
import Control.Lens
import Data.Monoid
import Data.String
import Network.AWS.Data.Internal.ByteString
import Network.AWS.Data.Internal.JSON
import Network.AWS.Data.Internal.Query
import Network.AWS.Data.Internal.Text
import Network.AWS.Data.Internal.XML
newtype Sensitive a = Sensitive { desensitise :: a }
deriving
( Eq
, Ord
, IsString
, Monoid
, ToByteString
, FromText
, ToText
, FromXML
, ToXML
, ToQuery
, ToJSON
, FromJSON
)
instance Show (Sensitive a) where
show = const "******"
_Sensitive :: Iso' (Sensitive a) a
_Sensitive = iso desensitise Sensitive