on master help sign in
Add missing conditional imports
commit7845acd5658694bddc79d5d11384761f79d44821 authorJonathan Daugherty <cygnus@foobox.com> dateTue 3 Mar 2020, 16:05 (7 years ago) parent124436e
2 files changed+8
src/Graphics/Vty/UnicodeWidthTable/IO.hs+4 src/Graphics/Vty/UnicodeWidthTable/Install.hs+4
src/Graphics/Vty/UnicodeWidthTable/IO.hs+4
@@ -1,3 +1,4 @@
1+{-# LANGUAGE CPP #-}
12module Graphics.Vty.UnicodeWidthTable.IO
23 ( readUnicodeWidthTable
34 , writeUnicodeWidthTable
@@ -9,6 +10,9 @@ import Data.Binary
910import Data.Binary.Get
1011import Data.Binary.Put
1112import qualified Data.ByteString.Lazy as BSL
13+#if !(MIN_VERSION_base(4,11,0))
14+import Data.Semigroup ((<>))
15+#endif
1216
1317import Graphics.Vty.UnicodeWidthTable.Types
1418
src/Graphics/Vty/UnicodeWidthTable/Install.hs+4
@@ -1,3 +1,4 @@
1+{-# LANGUAGE CPP #-}
12{-# LANGUAGE ForeignFunctionInterface #-}
23module Graphics.Vty.UnicodeWidthTable.Install
34 ( installUnicodeWidthTable
@@ -8,6 +9,9 @@ where
89
910import Control.Monad (when, forM_)
1011import Data.Word (Word8, Word32)
12+#if !(MIN_VERSION_base(4,11,0))
13+import Data.Semigroup ((<>))
14+#endif
1115
1216import Graphics.Vty.UnicodeWidthTable.Types
1317