packages feed

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

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

-- | The name @improbable@, which targets @()@. It names a field or constructor of @Likelihood@.
module ReOC.Name.Improbable (
  ImprobableLike (..),
) where

import Control.Lens (Optic)

class ImprobableLike p f x x' where
  improbable ::
    Optic p f x x' () ()

-- | Identity
instance (x' ~ ()) => ImprobableLike p f () x' where
  improbable = id