packages feed

papa-0.7.0: src/Papa/Base/Data/Divisor.hs

{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -Wall #-}

-- | The name @divisor@ (classy optics, rule 4): the value that a
-- 'Papa.Base.Data.NonZero.NonZero' holds.
--
-- Its target is a type variable, so the name has no identity instance
-- (rule 4).
--
-- @since 0.7.0
module Papa.Base.Data.Divisor (
  DivisorLike (..),
) where

import Control.Lens (Optic)

-- | A field or a constructor named @divisor@.
--
-- @since 0.7.0
class DivisorLike p f x x' a a' | x -> a where
  divisor ::
    Optic p f x x' a a'