on master help sign in
Add missing conditional imports
7845acdJonathan Daugherty
src/Graphics/Vty/UnicodeWidthTable/IO.hs+4
@@ -1,3 +1,4 @@
1+{-# LANGUAGE CPP #-}
1module Graphics.Vty.UnicodeWidthTable.IO
2module Graphics.Vty.UnicodeWidthTable.IO
2 ( readUnicodeWidthTable
3 ( readUnicodeWidthTable
3 , writeUnicodeWidthTable
4 , writeUnicodeWidthTable
@@ -9,6 +10,9 @@ import Data.Binary
9import Data.Binary.Get
10import Data.Binary.Get
10import Data.Binary.Put
11import Data.Binary.Put
11import qualified Data.ByteString.Lazy as BSL
12import qualified Data.ByteString.Lazy as BSL
13+#if !(MIN_VERSION_base(4,11,0))
14+import Data.Semigroup ((<>))
15+#endif
12
16
13import Graphics.Vty.UnicodeWidthTable.Types
17import Graphics.Vty.UnicodeWidthTable.Types
14
18
src/Graphics/Vty/UnicodeWidthTable/Install.hs+4
@@ -1,3 +1,4 @@
1+{-# LANGUAGE CPP #-}
1{-# LANGUAGE ForeignFunctionInterface #-}
2{-# LANGUAGE ForeignFunctionInterface #-}
2module Graphics.Vty.UnicodeWidthTable.Install
3module Graphics.Vty.UnicodeWidthTable.Install
3 ( installUnicodeWidthTable
4 ( installUnicodeWidthTable
@@ -8,6 +9,9 @@ where
8
9
9import Control.Monad (when, forM_)
10import Control.Monad (when, forM_)
10import Data.Word (Word8, Word32)
11import Data.Word (Word8, Word32)
12+#if !(MIN_VERSION_base(4,11,0))
13+import Data.Semigroup ((<>))
14+#endif
11
15
12import Graphics.Vty.UnicodeWidthTable.Types
16import Graphics.Vty.UnicodeWidthTable.Types
13
17