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