packages feed

document-build-0.2.0.0: src/Document/Build/Name/ImageResolutionX.hs

{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -Wall #-}

{- | The name @imageResolutionX@, targeting 'Double': the horizontal resolution of an image.

Any value of the target type has the name, as the identity.

@since 0.2.0.0
-}
module Document.Build.Name.ImageResolutionX (
  ImageResolutionXLike (..),
) where

import Control.Lens (Optic)

{- | A field or a constructor named @imageResolutionX@.

@since 0.2.0.0
-}
class ImageResolutionXLike p f x x' where
  imageResolutionX ::
    Optic p f x x' Double Double

{- | Identity

@since 0.2.0.0
-}
instance (x' ~ Double) => ImageResolutionXLike p f Double x' where
  imageResolutionX =
    id
  {-# INLINE imageResolutionX #-}