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