Add missing conditional imports

This commit is contained in:
Jonathan Daugherty 2020-03-03 16:05:54 -08:00
parent 124436e1de
commit 7845acd565
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
module Graphics.Vty.UnicodeWidthTable.IO
( readUnicodeWidthTable
, writeUnicodeWidthTable
@ -9,6 +10,9 @@ import Data.Binary
import Data.Binary.Get
import Data.Binary.Put
import qualified Data.ByteString.Lazy as BSL
#if !(MIN_VERSION_base(4,11,0))
import Data.Semigroup ((<>))
#endif
import Graphics.Vty.UnicodeWidthTable.Types

View File

@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
module Graphics.Vty.UnicodeWidthTable.Install
( installUnicodeWidthTable
@ -8,6 +9,9 @@ where
import Control.Monad (when, forM_)
import Data.Word (Word8, Word32)
#if !(MIN_VERSION_base(4,11,0))
import Data.Semigroup ((<>))
#endif
import Graphics.Vty.UnicodeWidthTable.Types