document-build-0.2.0.0: src/Document/Build/Name/InputDirectories.hs
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -Wall #-}
{- | The name @inputDirectories@, targeting @['FilePath']@: the input directories of a build, whose files the rules run on, in order.
Any value of the target type has the name, as the identity.
@since 0.2.0.0
-}
module Document.Build.Name.InputDirectories (
InputDirectoriesLike (..),
) where
import Control.Lens (Optic)
{- | A field or a constructor named @inputDirectories@.
@since 0.2.0.0
-}
class InputDirectoriesLike p f x x' where
inputDirectories ::
Optic p f x x' [FilePath] [FilePath]
{- | Identity
@since 0.2.0.0
-}
instance (x' ~ [FilePath]) => InputDirectoriesLike p f [FilePath] x' where
inputDirectories =
id
{-# INLINE inputDirectories #-}