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