Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Data/CaseInsensitive/Internal.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE CPP, DeriveDataTypeable #-}
{-# LANGUAGE CPP, DeriveDataTypeable, DeriveLift #-}

#if __GLASGOW_HASKELL__ >= 704
{-# LANGUAGE Unsafe #-}
Expand Down Expand Up @@ -47,6 +47,8 @@ import Text.Read ( Read, readPrec )
import Text.Show ( Show, showsPrec )
import Data.Semigroup ( Semigroup, (<>) )

import Language.Haskell.TH.Syntax (Lift)

import qualified Data.List as L ( map )

#if __GLASGOW_HASKELL__ < 700
Expand Down Expand Up @@ -90,7 +92,7 @@ data CI s = CI { original :: !s -- ^ Retrieve the original string-like value.
, foldedCase :: !s -- ^ Retrieve the case folded string-like value.
-- (Also see 'foldCase').
}
deriving (Data, Typeable)
deriving (Data, Typeable, Lift)

-- | Make the given string-like value case insensitive.
mk :: FoldCase s => s -> CI s
Expand Down
3 changes: 2 additions & 1 deletion case-insensitive.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: case-insensitive
version: 1.2.1.0
version: 1.2.2.0
cabal-version: >=1.8
build-type: Simple
license: BSD3
Expand Down Expand Up @@ -38,6 +38,7 @@ Library
, text >= 0.3
, deepseq >= 1.1
, hashable >= 1.0
, template-haskell
if !impl(ghc >= 8.0)
build-depends: semigroups >= 0.18
exposed-modules: Data.CaseInsensitive, Data.CaseInsensitive.Unsafe
Expand Down