File tree Expand file tree Collapse file tree 4 files changed +3
-10
lines changed Expand file tree Collapse file tree 4 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 1- {-# LANGUAGE CPP, DeriveDataTypeable #-}
1+ {-# LANGUAGE CPP #-}
22{-# LANGUAGE Safe #-}
33-- |
44-- Module : Data.Text.Encoding.Error
@@ -36,7 +36,6 @@ module Data.Text.Encoding.Error
3636
3737import Control.DeepSeq (NFData (.. ))
3838import Control.Exception (Exception , throw )
39- import Data.Typeable (Typeable )
4039import Data.Word (Word8 )
4140import Numeric (showHex )
4241
@@ -74,7 +73,7 @@ data UnicodeException =
7473 | EncodeError String (Maybe Char )
7574 -- ^ Tried to encode a character that could not be represented
7675 -- under the given encoding, or ran out of input in mid-encode.
77- deriving (Eq , Typeable )
76+ deriving (Eq )
7877
7978{-# DEPRECATED EncodeError "This constructor is never used, and will be removed." #-}
8079
Original file line number Diff line number Diff line change 11{-# LANGUAGE BangPatterns #-}
22{-# LANGUAGE CPP #-}
3- {-# LANGUAGE DeriveDataTypeable #-}
43{-# LANGUAGE RankNTypes #-}
54{-# LANGUAGE UnboxedTuples #-}
65{-# OPTIONS_HADDOCK not-home #-}
@@ -58,15 +57,13 @@ import Control.Monad.ST (ST, runST)
5857import Data.Bits
5958import Data.Int (Int32 , Int64 )
6059import Data.Text.Internal.Unsafe.Char (ord , unsafeWrite )
61- import Data.Typeable (Typeable )
6260import qualified Data.Text.Array as A
6361
6462-- | A space efficient, packed, unboxed Unicode text type.
6563data Text = Text
6664 {- # UNPACK #-} !A. Array -- ^ bytearray encoded as UTF-8
6765 {- # UNPACK #-} !Int -- ^ offset in bytes (not in Char!), pointing to a start of UTF-8 sequence
6866 {- # UNPACK #-} !Int -- ^ length in bytes (not in Char!), pointing to an end of UTF-8 sequence
69- deriving (Typeable )
7067
7168-- | Type synonym for the strict flavour of 'Text'.
7269type StrictText = Text
Original file line number Diff line number Diff line change 1- {-# LANGUAGE BangPatterns, DeriveDataTypeable #-}
1+ {-# LANGUAGE BangPatterns #-}
22{-# OPTIONS_HADDOCK not-home #-}
33
44-- |
@@ -43,7 +43,6 @@ module Data.Text.Internal.Lazy
4343
4444import Data.Bits (shiftL )
4545import Data.Text ()
46- import Data.Typeable (Typeable )
4746import Foreign.Storable (sizeOf )
4847import qualified Data.Text.Array as A
4948import qualified Data.Text.Internal as T
@@ -55,7 +54,6 @@ data Text = Empty
5554 -- @since 2.1.2
5655 | Chunk {- # UNPACK #-} !T. Text Text
5756 -- ^ Chunks must be non-empty, this invariant is not checked.
58- deriving (Typeable )
5957
6058-- | Type synonym for the lazy flavour of 'Text'.
6159type LazyText = Text
Original file line number Diff line number Diff line change 1- {-# LANGUAGE BangPatterns, DeriveDataTypeable #-}
21-- |
32-- Module : Data.Text.Lazy.Internal
43-- Copyright : (c) 2013 Bryan O'Sullivan
You can’t perform that action at this time.
0 commit comments