{-# LANGUAGE DeriveAnyClass #-} module Horizon.Spec.Types.Flag (Flag(Enable,Disable)) where import Data.Kind (Type) import Dhall (FromDhall, Generic, ToDhall) type Flag :: Type -> Type data Flag a where Enable :: a -> Flag a Disable :: a -> Flag a deriving stock (Int -> Flag a -> ShowS forall a. Show a => Int -> Flag a -> ShowS forall a. Show a => [Flag a] -> ShowS forall a. Show a => Flag a -> String forall a. (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a showList :: [Flag a] -> ShowS $cshowList :: forall a. Show a => [Flag a] -> ShowS show :: Flag a -> String $cshow :: forall a. Show a => Flag a -> String showsPrec :: Int -> Flag a -> ShowS $cshowsPrec :: forall a. Show a => Int -> Flag a -> ShowS Show, Flag a -> Flag a -> Bool forall a. Eq a => Flag a -> Flag a -> Bool forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a /= :: Flag a -> Flag a -> Bool $c/= :: forall a. Eq a => Flag a -> Flag a -> Bool == :: Flag a -> Flag a -> Bool $c== :: forall a. Eq a => Flag a -> Flag a -> Bool Eq, forall a. (forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a forall a x. Rep (Flag a) x -> Flag a forall a x. Flag a -> Rep (Flag a) x $cto :: forall a x. Rep (Flag a) x -> Flag a $cfrom :: forall a x. Flag a -> Rep (Flag a) x Generic) deriving anyclass (forall a. FromDhall a => InputNormalizer -> Decoder (Flag a) forall a. (InputNormalizer -> Decoder a) -> FromDhall a autoWith :: InputNormalizer -> Decoder (Flag a) $cautoWith :: forall a. FromDhall a => InputNormalizer -> Decoder (Flag a) FromDhall, forall a. ToDhall a => InputNormalizer -> Encoder (Flag a) forall a. (InputNormalizer -> Encoder a) -> ToDhall a injectWith :: InputNormalizer -> Encoder (Flag a) $cinjectWith :: forall a. ToDhall a => InputNormalizer -> Encoder (Flag a) ToDhall)