packages feed

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

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

-- | The name @onlineTheory@, which targets @()@. It names a field or constructor of @TheoryDelivery@.
module ReOC.Name.OnlineTheory (
  OnlineTheoryLike (..),
) where

import Control.Lens (Optic)

class OnlineTheoryLike p f x x' where
  onlineTheory ::
    Optic p f x x' () ()

-- | Identity
instance (x' ~ ()) => OnlineTheoryLike p f () x' where
  onlineTheory = id