{-# LANGUAGE GADTs, NoImplicitPrelude, OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-orphans #-} ----------------------------------------------------------------------------- -- | -- Module : Text.Show.Text.Data.Type.Coercion -- Copyright : (C) 2014 Ryan Scott -- License : BSD-style (see the file LICENSE) -- Maintainer : Ryan Scott -- Stability : Experimental -- Portability : GHC -- -- Monomorphic 'Show' function for representational equality. ---------------------------------------------------------------------------- module Text.Show.Text.Data.Type.Coercion (showbCoercion) where import Data.Text.Lazy.Builder (Builder) import Data.Type.Coercion (Coercion(..)) import Prelude hiding (Show) import Text.Show.Text.Class (Show(showb)) -- | Convert a representational equality value to a 'Builder'. showbCoercion :: Coercion a b -> Builder showbCoercion Coercion = "Coercion" {-# INLINE showbCoercion #-} instance Show (Coercion a b) where showb = showbCoercion {-# INLINE showb #-}