packages feed

casa-reoc-0.1.0.0: src/ReOC/Name/NotADirector.hs

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

-- | The name @notADirector@, which targets @()@. It names a field or constructor of @Directorship@.
module ReOC.Name.NotADirector (
  NotADirectorLike (..),
) where

import Control.Lens (Optic)

class NotADirectorLike p f x x' where
  notADirector ::
    Optic p f x x' () ()

-- | Identity
instance (x' ~ ()) => NotADirectorLike p f () x' where
  notADirector = id