{-# LANGUAGE DeriveDataTypeable #-} -------------------------------------------------------------------------------- -- | -- Module : Network.OpenID.Types -- Copyright : (c) Trevor Elliott, 2008 -- License : BSD3 -- -- Maintainer : Trevor Elliott -- Stability : -- Portability : -- module OpenId2.Types ( Provider (..) , Identifier (..) , OpenIdException (..) ) where -- Libraries import Control.Exception (Exception) import Data.Typeable (Typeable) data OpenIdException = NormalizationException String | DiscoveryException String | AuthenticationException String deriving (Show, Typeable) instance Exception OpenIdException -- | An OpenID provider. newtype Provider = Provider { providerURI :: String } deriving (Eq,Show) -- | A valid OpenID identifier. newtype Identifier = Identifier { identifier :: String } deriving (Eq, Show, Read)