Permalink
Browse files

base < 4.5 compatibility

Make the package compile against older versions of base that don't
define the <> operator.

Contributed by Irek Jozwiak.
  • Loading branch information...
1 parent 8827bc2 commit 3829e75b932826ce7e801701ee95c7a25dfd1746 @tibbe committed Aug 30, 2012
Showing with 6 additions and 3 deletions.
  1. +2 −1 Data/Csv/Conversion/Internal.hs
  2. +2 −1 Data/Csv/Encoding.hs
  3. +2 −1 cassava.cabal
@@ -10,9 +10,10 @@ import Data.Array.IArray
import qualified Data.ByteString as B
import Data.Char (ord)
import Data.Int
-import Data.Monoid
import Data.Word
+import Data.Csv.Compat.Monoid ((<>))
+
------------------------------------------------------------------------
-- Integers
View
@@ -37,13 +37,14 @@ import qualified Data.ByteString.Char8 as B8
import qualified Data.ByteString.Lazy as L
import qualified Data.ByteString.Lazy.Char8 as BL8
import qualified Data.HashMap.Strict as HM
-import Data.Monoid
+import Data.Monoid (mconcat, mempty)
import Data.Traversable
import Data.Vector (Vector)
import qualified Data.Vector as V
import Data.Word (Word8)
import Prelude hiding (unlines)
+import Data.Csv.Compat.Monoid ((<>))
import Data.Csv.Conversion
import Data.Csv.Parser
import Data.Csv.Types
View
@@ -23,7 +23,8 @@ Library
Exposed-modules: Data.Csv
Data.Csv.Parser
- Other-modules: Data.Csv.Conversion
+ Other-modules: Data.Csv.Compat.Monoid
+ Data.Csv.Conversion
Data.Csv.Conversion.Internal
Data.Csv.Encoding
Data.Csv.Types

0 comments on commit 3829e75

Please sign in to comment.