document-build-0.2.0.0: src/Document/Build/Name/ImageDepth.hs
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -Wall #-}
{- | The name @imageDepth@, targeting 'Int': the bit depth of an image.
Any value of the target type has the name, as the identity.
@since 0.2.0.0
-}
module Document.Build.Name.ImageDepth (
ImageDepthLike (..),
) where
import Control.Lens (Optic)
{- | A field or a constructor named @imageDepth@.
@since 0.2.0.0
-}
class ImageDepthLike p f x x' where
imageDepth ::
Optic p f x x' Int Int
{- | Identity
@since 0.2.0.0
-}
instance (x' ~ Int) => ImageDepthLike p f Int x' where
imageDepth =
id
{-# INLINE imageDepth #-}