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