<commit_before>module Data.LLVM.Types ( module Data.LLVM.Private.AttributeTypes
                       , module Data.LLVM.Private.ReferentialTypes
                       ) where

import Data.LLVM.Private.AttributeTypes
import Data.LLVM.Private.Printers
import Data.LLVM.Private.ReferentialTypes

instance Show Metadata where
  show = printMetadata

instance Show Type where
  show = printType

instance Show Value where
  show = printValue

instance Show Module where
  show = printModule


<commit_msg>Silence the orphan instance warnings for the Show instances of the LLVM data types.<commit_after>{-# OPTIONS_GHC -fno-warn-orphans #-}
module Data.LLVM.Types ( module Data.LLVM.Private.AttributeTypes
                       , module Data.LLVM.Private.ReferentialTypes
                       ) where

import Data.LLVM.Private.AttributeTypes
import Data.LLVM.Private.Printers
import Data.LLVM.Private.ReferentialTypes

-- Technically, these are orphan instances.  But really, if you are
-- using the public interface to this library they are not.  They are
-- only defined outside of the module containing the data type
-- declarations (Data.LLVM.Private.ReferentialTypes) to keep that
-- module's compile time down.
--
-- I disable the warning since this seems reasonable.
--
-- This also would allow users to define their own show instances for
-- these types if desired.

instance Show Metadata where
  show = printMetadata

instance Show Type where
  show = printType

instance Show Value where
  show = printValue

instance Show Module where
  show = printModule

{'fraction_non_alphanumeric': 0.06186224489795918, 'fraction_numerical': 0.0, 'mean_word_length': 3.217741935483871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5180037', 'n_tokens_mistral': 417, 'n_tokens_neox': 401, 'n_words': 155}