packages feed

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

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

{- | The name @imageResolutionY@, targeting 'Double': the vertical 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.ImageResolutionY (
  ImageResolutionYLike (..),
) where

import Control.Lens (Optic)

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

@since 0.2.0.0
-}
class ImageResolutionYLike p f x x' where
  imageResolutionY ::
    Optic p f x x' Double Double

{- | Identity

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