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