Skip to content

Commit ee6ba0f

Browse files
committed
Only import fromInteger when ghc < 7.1
Ignore-this: 410c7067ff113487323c47380b21e2eb ghc-7.1 gives a warning that this function is redundantly imported. Bumped version from 0.4 to 0.4.0.1 because of this internal change. darcs-hash:20101103105922-ae560-4e875f4f3c4e0dbf67aa0f92fad26e83df43a14f.gz
1 parent adacc2e commit ee6ba0f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Data/DString.hs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{-# LANGUAGE UnicodeSyntax
1+
{-# LANGUAGE CPP
2+
, UnicodeSyntax
23
, NoImplicitPrelude
34
, GeneralizedNewtypeDeriving
45
, DeriveDataTypeable
@@ -49,7 +50,7 @@ module Data.DString
4950
--------------------------------------------------------------------------------
5051

5152
-- from base:
52-
import Prelude ( fromInteger, (>=), error )
53+
import Prelude ( (>=), error )
5354
import Data.Char ( Char, String )
5455
import Data.Function ( ($), const, flip )
5556
import Data.List ( map )
@@ -59,6 +60,10 @@ import Data.Typeable ( Typeable )
5960
import Data.String ( IsString, fromString )
6061
import Text.Show ( Show, showsPrec, ShowS, showParen, showString, shows )
6162

63+
#if __GLASGOW_HASKELL__ < 701
64+
import Prelude ( fromInteger )
65+
#endif
66+
6267
-- from base-unicode-symbols:
6368
import Data.Function.Unicode ( (∘) )
6469

dstring.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Name: dstring
2-
Version: 0.4
2+
Version: 0.4.0.1
33
Synopsis: Difference strings
44
Description:
55
Difference strings: a data structure for O(1) append on strings. Note that a

0 commit comments

Comments
 (0)