packages feed

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

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

-- | The name @invalidPostcode@, which targets @Text@. It names a field or constructor of @InvalidValue@.
module ReOC.Name.InvalidPostcode (
  InvalidPostcodeLike (..),
) where

import Control.Lens (Optic)
import Data.Text (Text)

class InvalidPostcodeLike p f x x' where
  invalidPostcode ::
    Optic p f x x' Text Text

-- | Identity
instance (x' ~ Text) => InvalidPostcodeLike p f Text x' where
  invalidPostcode = id