{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-|
Module:      TextShow.Data.Dynamic
Copyright:   (C) 2014-2017 Ryan Scott
License:     BSD-style (see the file LICENSE)
Maintainer:  Ryan Scott
Stability:   Provisional
Portability: GHC

'TextShow' instance for 'Dynamic'.

/Since: 2/
-}
module TextShow.Data.Dynamic () where

import Data.Dynamic (Dynamic, dynTypeRep)

import Prelude ()
import Prelude.Compat

import TextShow.Classes (TextShow(..))
import TextShow.Data.Typeable ()

-- | /Since: 2/
instance TextShow Dynamic where
    showb :: Dynamic -> Builder
showb Dynamic
dyn = Builder
"<<" Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
<> SomeTypeRep -> Builder
forall a. TextShow a => a -> Builder
showb (Dynamic -> SomeTypeRep
dynTypeRep Dynamic
dyn) Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
<> Builder
">>"
    {-# INLINE showb #-}