module Patrol.Type.BreadcrumbType where
import qualified Data.Aeson as Aeson
data BreadcrumbType
= Default
| Http
| Navigation
deriving (BreadcrumbType -> BreadcrumbType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BreadcrumbType -> BreadcrumbType -> Bool
$c/= :: BreadcrumbType -> BreadcrumbType -> Bool
== :: BreadcrumbType -> BreadcrumbType -> Bool
$c== :: BreadcrumbType -> BreadcrumbType -> Bool
Eq, Int -> BreadcrumbType -> ShowS
[BreadcrumbType] -> ShowS
BreadcrumbType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BreadcrumbType] -> ShowS
$cshowList :: [BreadcrumbType] -> ShowS
show :: BreadcrumbType -> String
$cshow :: BreadcrumbType -> String
showsPrec :: Int -> BreadcrumbType -> ShowS
$cshowsPrec :: Int -> BreadcrumbType -> ShowS
Show)
instance Aeson.ToJSON BreadcrumbType where
toJSON :: BreadcrumbType -> Value
toJSON BreadcrumbType
breadcrumbType = forall a. ToJSON a => a -> Value
Aeson.toJSON forall a b. (a -> b) -> a -> b
$ case BreadcrumbType
breadcrumbType of
BreadcrumbType
Default -> String
"default"
BreadcrumbType
Http -> String
"http"
BreadcrumbType
Navigation -> String
"navigation"