packages feed

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

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

-- | The name @multirotor@, which targets @()@. It names a field or constructor of @RPACategory@.
module ReOC.Name.Multirotor (
  MultirotorLike (..),
) where

import Control.Lens (Optic)

class MultirotorLike p f x x' where
  multirotor ::
    Optic p f x x' () ()

-- | Identity
instance (x' ~ ()) => MultirotorLike p f () x' where
  multirotor = id