BSD-3-Clause licensed by Ryan Scott
Maintained by Ryan Scott
This version can be pinned in stack with:text-show-instances-3.4@sha256:613fc4aca6a077d76235b8354708cb20a9f1fe164e772002029b01d6c445177d,13356


Hackage Hackage Dependencies Haskell Programming Language BSD3 License Build

text-show-instances is a supplemental library to text-show that provides additional Show instances for data types in common Haskell libraries and GHC dependencies that are not encompassed by text-show. Currently, text-show-instances covers these libraries:

One can use these instances by importing TextShow.Instances. Alternatively, there are monomorphic versions of the showb function available in the other submodules of TextShow.



  • Require text-show-3.4 or later
  • Update testsuite to be buildable with text-show-3.4


  • Add the TextShow.GHC.LanguageExtensions.Type and TextShow.GHC.PackageDb modules, which define instances if using ghc-boot
  • Add TextShow instances for NameFlavour, NameSpace, PatSynArgs, and PatSynDir in TextShow.Language.Haskell.TH
  • Require text-show-3.3 or later, which has slightly different TH derivation behavior. As a result, the context for the TextShow1 instance for Clown in TextShow.Data.Bifunctor had to be changed slightly.
  • Allow building with QuickCheck-2.9
  • Fix GHC HEAD build


  • Fix build with GHC 8.0
  • Add TextShow instance for Overlap in TextShow.Language.Haskell.TH


  • Allow build with text-show-3.2


  • Require quickcheck-instances >= 0.3.12 in test suite due to presence of new orphan Arbitrary instances for vector datatypes


  • GHC 8.0 support
  • Rename functions that previously ended with the suffix -With to instead have the prefix lift-, consistent with text-show-3
  • Removed the TextShow.Data.Semigroup and TextShow.Data.List.NonEmpty modules, as they have been moved to text-show-3 (as part of moving Semigroup into base)
  • Removed the functions for Compose, Product, and Sum in TextShow.Data.Functor.Trans, as they have been moved to text-show-3 (as part of moving them to base)
  • Add TextShow/TextShow1 instances for Fix and Sum in TextShow.Data.Bifunctor
  • Add TextShow/TextShow1 instances for the datatypes in Text.PrettyPrint.Annotated (introduced in @pretty-
  • Add TextShow instances for the new datatypes in @template-haskell-


  • Reexport the TextShow classes and module from TextShow.Instances. This helps Haddock readers discover what new instances are added with text-show-instances.
  • Make Tagged instances poly-kinded


  • Allow building with vector-0.11 and above. Be aware that the Show instances for Vector types in vector-0.11.0 are different from other versions of vector.


  • Changed the top-level module name from Text.Show.Text to TextShow, since the former was extremely verbose without much benefit. As a result, this will break all existing code that depends on text-show-instances.


  • Allow building with text-show-1. Also changed the monomorphic functions to match the naming conventions introduced in text-show-1.
  • Added instances for the bifunctors library
  • Removed utf8-string instance, since it wasn’t as useful as I had imagined
  • Revamped test suite


  • Allow building with text-show-0.8
  • Modules which were previously exported only if using a recent-enough version of GHC/base (e.g., Text.Show.Text.System.Win32) are now always exposed. If the functionality that the module provides is not available on a given version of GHC/base, the module will not expose anything.
  • Change test-suite to use hspec, allowing for it to be built on GHC 7.0 and 7.2

  • Fixed tests on Windows


  • Added showbArgPrec (and corresponding Show and Show1 instances) to Text.Show.Text.Data.Semigroup
  • Added Show1 instances for data types in Text.Show.Text.Data.List.NonEmpty and Text.Show.Text.Data.Semigroup
  • Added showbDoc (and corresponding Show instance) to Text.Show.Text.Language.Haskell.TH
  • Renamed showbDoc in Text.Show.Text.Text.PrettyPrint to renderB


  • Exposed showbKindPrec and showbPredPrec with later versions of Template Haskell
  • Added renderStyleB to Text.Show.Text.Text.PrettyPrint (for time-1.5 and later)
  • Added showbTimeLocalePrec to Text.Show.Text.Data.Time
  • Added instances for the binary, haskeline, hoopl, terminfo, and utf8-string libraries
  • Removed transformers-four flag


  • Initial commit