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