{-# LANGUAGE DeriveDataTypeable, TemplateHaskell #-}
module Clckwrks.ProfileData.URL where

import Data.Data                   (Data, Typeable)
import Data.SafeCopy               (SafeCopy(..), base, deriveSafeCopy)
import Data.UserId                 (UserId)
import Web.Routes.TH               (derivePathInfo)

data ProfileDataURL
    = CreateNewProfileData
    | EditProfileData
    | EditNewProfileData
    | EditProfileDataFor UserId
      deriving (ProfileDataURL -> ProfileDataURL -> Bool
(ProfileDataURL -> ProfileDataURL -> Bool)
-> (ProfileDataURL -> ProfileDataURL -> Bool) -> Eq ProfileDataURL
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProfileDataURL -> ProfileDataURL -> Bool
$c/= :: ProfileDataURL -> ProfileDataURL -> Bool
== :: ProfileDataURL -> ProfileDataURL -> Bool
$c== :: ProfileDataURL -> ProfileDataURL -> Bool
Eq, Eq ProfileDataURL
Eq ProfileDataURL
-> (ProfileDataURL -> ProfileDataURL -> Ordering)
-> (ProfileDataURL -> ProfileDataURL -> Bool)
-> (ProfileDataURL -> ProfileDataURL -> Bool)
-> (ProfileDataURL -> ProfileDataURL -> Bool)
-> (ProfileDataURL -> ProfileDataURL -> Bool)
-> (ProfileDataURL -> ProfileDataURL -> ProfileDataURL)
-> (ProfileDataURL -> ProfileDataURL -> ProfileDataURL)
-> Ord ProfileDataURL
ProfileDataURL -> ProfileDataURL -> Bool
ProfileDataURL -> ProfileDataURL -> Ordering
ProfileDataURL -> ProfileDataURL -> ProfileDataURL
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ProfileDataURL -> ProfileDataURL -> ProfileDataURL
$cmin :: ProfileDataURL -> ProfileDataURL -> ProfileDataURL
max :: ProfileDataURL -> ProfileDataURL -> ProfileDataURL
$cmax :: ProfileDataURL -> ProfileDataURL -> ProfileDataURL
>= :: ProfileDataURL -> ProfileDataURL -> Bool
$c>= :: ProfileDataURL -> ProfileDataURL -> Bool
> :: ProfileDataURL -> ProfileDataURL -> Bool
$c> :: ProfileDataURL -> ProfileDataURL -> Bool
<= :: ProfileDataURL -> ProfileDataURL -> Bool
$c<= :: ProfileDataURL -> ProfileDataURL -> Bool
< :: ProfileDataURL -> ProfileDataURL -> Bool
$c< :: ProfileDataURL -> ProfileDataURL -> Bool
compare :: ProfileDataURL -> ProfileDataURL -> Ordering
$ccompare :: ProfileDataURL -> ProfileDataURL -> Ordering
$cp1Ord :: Eq ProfileDataURL
Ord, ReadPrec [ProfileDataURL]
ReadPrec ProfileDataURL
Int -> ReadS ProfileDataURL
ReadS [ProfileDataURL]
(Int -> ReadS ProfileDataURL)
-> ReadS [ProfileDataURL]
-> ReadPrec ProfileDataURL
-> ReadPrec [ProfileDataURL]
-> Read ProfileDataURL
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProfileDataURL]
$creadListPrec :: ReadPrec [ProfileDataURL]
readPrec :: ReadPrec ProfileDataURL
$creadPrec :: ReadPrec ProfileDataURL
readList :: ReadS [ProfileDataURL]
$creadList :: ReadS [ProfileDataURL]
readsPrec :: Int -> ReadS ProfileDataURL
$creadsPrec :: Int -> ReadS ProfileDataURL
Read, Int -> ProfileDataURL -> ShowS
[ProfileDataURL] -> ShowS
ProfileDataURL -> String
(Int -> ProfileDataURL -> ShowS)
-> (ProfileDataURL -> String)
-> ([ProfileDataURL] -> ShowS)
-> Show ProfileDataURL
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProfileDataURL] -> ShowS
$cshowList :: [ProfileDataURL] -> ShowS
show :: ProfileDataURL -> String
$cshow :: ProfileDataURL -> String
showsPrec :: Int -> ProfileDataURL -> ShowS
$cshowsPrec :: Int -> ProfileDataURL -> ShowS
Show, Typeable ProfileDataURL
DataType
Constr
Typeable ProfileDataURL
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> ProfileDataURL -> c ProfileDataURL)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c ProfileDataURL)
-> (ProfileDataURL -> Constr)
-> (ProfileDataURL -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c ProfileDataURL))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c ProfileDataURL))
-> ((forall b. Data b => b -> b)
    -> ProfileDataURL -> ProfileDataURL)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> ProfileDataURL -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> ProfileDataURL -> r)
-> (forall u.
    (forall d. Data d => d -> u) -> ProfileDataURL -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> ProfileDataURL -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d)
    -> ProfileDataURL -> m ProfileDataURL)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> ProfileDataURL -> m ProfileDataURL)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> ProfileDataURL -> m ProfileDataURL)
-> Data ProfileDataURL
ProfileDataURL -> DataType
ProfileDataURL -> Constr
(forall b. Data b => b -> b) -> ProfileDataURL -> ProfileDataURL
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ProfileDataURL -> c ProfileDataURL
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c ProfileDataURL
forall a.
Typeable a
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u.
Int -> (forall d. Data d => d -> u) -> ProfileDataURL -> u
forall u. (forall d. Data d => d -> u) -> ProfileDataURL -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> ProfileDataURL -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> ProfileDataURL -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> ProfileDataURL -> m ProfileDataURL
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> ProfileDataURL -> m ProfileDataURL
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c ProfileDataURL
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ProfileDataURL -> c ProfileDataURL
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c ProfileDataURL)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c ProfileDataURL)
$cEditProfileDataFor :: Constr
$cEditNewProfileData :: Constr
$cEditProfileData :: Constr
$cCreateNewProfileData :: Constr
$tProfileDataURL :: DataType
gmapMo :: (forall d. Data d => d -> m d)
-> ProfileDataURL -> m ProfileDataURL
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> ProfileDataURL -> m ProfileDataURL
gmapMp :: (forall d. Data d => d -> m d)
-> ProfileDataURL -> m ProfileDataURL
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> ProfileDataURL -> m ProfileDataURL
gmapM :: (forall d. Data d => d -> m d)
-> ProfileDataURL -> m ProfileDataURL
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> ProfileDataURL -> m ProfileDataURL
gmapQi :: Int -> (forall d. Data d => d -> u) -> ProfileDataURL -> u
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> ProfileDataURL -> u
gmapQ :: (forall d. Data d => d -> u) -> ProfileDataURL -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> ProfileDataURL -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> ProfileDataURL -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> ProfileDataURL -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> ProfileDataURL -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> ProfileDataURL -> r
gmapT :: (forall b. Data b => b -> b) -> ProfileDataURL -> ProfileDataURL
$cgmapT :: (forall b. Data b => b -> b) -> ProfileDataURL -> ProfileDataURL
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c ProfileDataURL)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c ProfileDataURL)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c ProfileDataURL)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c ProfileDataURL)
dataTypeOf :: ProfileDataURL -> DataType
$cdataTypeOf :: ProfileDataURL -> DataType
toConstr :: ProfileDataURL -> Constr
$ctoConstr :: ProfileDataURL -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c ProfileDataURL
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c ProfileDataURL
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ProfileDataURL -> c ProfileDataURL
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ProfileDataURL -> c ProfileDataURL
$cp1Data :: Typeable ProfileDataURL
Data, Typeable)

$(derivePathInfo ''ProfileDataURL)
$(deriveSafeCopy 1 'base ''ProfileDataURL)