packages feed

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

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

{- | The name @inputFileMissing@, targeting 'FilePath': the constructor of an input file that does not exist.

Any value of the target type has the name, as the identity.

@since 0.2.0.0
-}
module Document.Build.Name.InputFileMissing (
  InputFileMissingLike (..),
) where

import Control.Lens (Optic)

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

@since 0.2.0.0
-}
class InputFileMissingLike p f x x' where
  inputFileMissing ::
    Optic p f x x' FilePath FilePath

{- | Identity

@since 0.2.0.0
-}
instance (x' ~ FilePath) => InputFileMissingLike p f FilePath x' where
  inputFileMissing =
    id
  {-# INLINE inputFileMissing #-}