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

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

data AdminURL
    = Console
    | EditSettings
    | EditNavBar
    | NavBarPost
    | SystemEmails
      deriving (AdminURL -> AdminURL -> Bool
(AdminURL -> AdminURL -> Bool)
-> (AdminURL -> AdminURL -> Bool) -> Eq AdminURL
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AdminURL -> AdminURL -> Bool
$c/= :: AdminURL -> AdminURL -> Bool
== :: AdminURL -> AdminURL -> Bool
$c== :: AdminURL -> AdminURL -> Bool
Eq, Eq AdminURL
Eq AdminURL
-> (AdminURL -> AdminURL -> Ordering)
-> (AdminURL -> AdminURL -> Bool)
-> (AdminURL -> AdminURL -> Bool)
-> (AdminURL -> AdminURL -> Bool)
-> (AdminURL -> AdminURL -> Bool)
-> (AdminURL -> AdminURL -> AdminURL)
-> (AdminURL -> AdminURL -> AdminURL)
-> Ord AdminURL
AdminURL -> AdminURL -> Bool
AdminURL -> AdminURL -> Ordering
AdminURL -> AdminURL -> AdminURL
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 :: AdminURL -> AdminURL -> AdminURL
$cmin :: AdminURL -> AdminURL -> AdminURL
max :: AdminURL -> AdminURL -> AdminURL
$cmax :: AdminURL -> AdminURL -> AdminURL
>= :: AdminURL -> AdminURL -> Bool
$c>= :: AdminURL -> AdminURL -> Bool
> :: AdminURL -> AdminURL -> Bool
$c> :: AdminURL -> AdminURL -> Bool
<= :: AdminURL -> AdminURL -> Bool
$c<= :: AdminURL -> AdminURL -> Bool
< :: AdminURL -> AdminURL -> Bool
$c< :: AdminURL -> AdminURL -> Bool
compare :: AdminURL -> AdminURL -> Ordering
$ccompare :: AdminURL -> AdminURL -> Ordering
$cp1Ord :: Eq AdminURL
Ord, ReadPrec [AdminURL]
ReadPrec AdminURL
Int -> ReadS AdminURL
ReadS [AdminURL]
(Int -> ReadS AdminURL)
-> ReadS [AdminURL]
-> ReadPrec AdminURL
-> ReadPrec [AdminURL]
-> Read AdminURL
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AdminURL]
$creadListPrec :: ReadPrec [AdminURL]
readPrec :: ReadPrec AdminURL
$creadPrec :: ReadPrec AdminURL
readList :: ReadS [AdminURL]
$creadList :: ReadS [AdminURL]
readsPrec :: Int -> ReadS AdminURL
$creadsPrec :: Int -> ReadS AdminURL
Read, Int -> AdminURL -> ShowS
[AdminURL] -> ShowS
AdminURL -> String
(Int -> AdminURL -> ShowS)
-> (AdminURL -> String) -> ([AdminURL] -> ShowS) -> Show AdminURL
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AdminURL] -> ShowS
$cshowList :: [AdminURL] -> ShowS
show :: AdminURL -> String
$cshow :: AdminURL -> String
showsPrec :: Int -> AdminURL -> ShowS
$cshowsPrec :: Int -> AdminURL -> ShowS
Show, Typeable AdminURL
DataType
Constr
Typeable AdminURL
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> AdminURL -> c AdminURL)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c AdminURL)
-> (AdminURL -> Constr)
-> (AdminURL -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c AdminURL))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdminURL))
-> ((forall b. Data b => b -> b) -> AdminURL -> AdminURL)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> AdminURL -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> AdminURL -> r)
-> (forall u. (forall d. Data d => d -> u) -> AdminURL -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> AdminURL -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> AdminURL -> m AdminURL)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> AdminURL -> m AdminURL)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> AdminURL -> m AdminURL)
-> Data AdminURL
AdminURL -> DataType
AdminURL -> Constr
(forall b. Data b => b -> b) -> AdminURL -> AdminURL
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> AdminURL -> c AdminURL
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c AdminURL
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) -> AdminURL -> u
forall u. (forall d. Data d => d -> u) -> AdminURL -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> AdminURL -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> AdminURL -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> AdminURL -> m AdminURL
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> AdminURL -> m AdminURL
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c AdminURL
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> AdminURL -> c AdminURL
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c AdminURL)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdminURL)
$cSystemEmails :: Constr
$cNavBarPost :: Constr
$cEditNavBar :: Constr
$cEditSettings :: Constr
$cConsole :: Constr
$tAdminURL :: DataType
gmapMo :: (forall d. Data d => d -> m d) -> AdminURL -> m AdminURL
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> AdminURL -> m AdminURL
gmapMp :: (forall d. Data d => d -> m d) -> AdminURL -> m AdminURL
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> AdminURL -> m AdminURL
gmapM :: (forall d. Data d => d -> m d) -> AdminURL -> m AdminURL
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> AdminURL -> m AdminURL
gmapQi :: Int -> (forall d. Data d => d -> u) -> AdminURL -> u
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> AdminURL -> u
gmapQ :: (forall d. Data d => d -> u) -> AdminURL -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> AdminURL -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> AdminURL -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> AdminURL -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> AdminURL -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> AdminURL -> r
gmapT :: (forall b. Data b => b -> b) -> AdminURL -> AdminURL
$cgmapT :: (forall b. Data b => b -> b) -> AdminURL -> AdminURL
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdminURL)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdminURL)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c AdminURL)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c AdminURL)
dataTypeOf :: AdminURL -> DataType
$cdataTypeOf :: AdminURL -> DataType
toConstr :: AdminURL -> Constr
$ctoConstr :: AdminURL -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c AdminURL
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c AdminURL
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> AdminURL -> c AdminURL
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> AdminURL -> c AdminURL
$cp1Data :: Typeable AdminURL
Data, Typeable)

$(derivePathInfo ''AdminURL)
$(deriveSafeCopy 3 'base ''AdminURL)