[PATCH] bytestring-show RIP
authorunc0rr <unc0rr@gmail.com>
Wed, 29 Jun 2016 17:16:29 +0000 (20:16 +0300)
committerGianfranco Costamagna <locutusofborg@debian.org>
Thu, 12 Jan 2017 16:30:21 +0000 (16:30 +0000)
Gbp-Pq: Name dc19837f6b9bccddcd2fc05e1d44255aab79b614.patch

gameServer/CMakeLists.txt
gameServer/Utils.hs
gameServer/hedgewars-server.cabal

index 43bcf238a56f4eaa7d692cecdf9afa642fe023cb..0616258b9de01fc94191c7a4093548ec2459e6fe 100644 (file)
@@ -9,7 +9,6 @@ check_haskell_module_exists("Control.Exception" mask 1 base)
 check_haskell_module_exists("Data.Map" size 1 containers)
 check_haskell_module_exists("Data.Vector" length 1 vector)
 check_haskell_module_exists("Data.ByteString" pack 1 bytestring)
-check_haskell_module_exists("Text.Show.ByteString" putDigit 1 bytestring-show)
 check_haskell_module_exists("Network.BSD" getHostName 0 network)
 check_haskell_module_exists("Data.Time" getCurrentTime 0 time)
 check_haskell_module_exists("Control.Monad.State" fix 1 mtl)
index b24ca723edc0ad20115a45ec71e1b17498a14c1d..be8f7550ab55801d6289b1ea8049c6b7e5036170 100644 (file)
@@ -29,7 +29,6 @@ import System.IO
 import qualified Data.List as List
 import Control.Monad
 import qualified Data.ByteString.Lazy as BL
-import qualified Text.Show.ByteString as BS
 import qualified Data.ByteString.Char8 as B
 import qualified Data.ByteString.UTF8 as UTF8
 import Data.Maybe
@@ -130,8 +129,8 @@ unfoldrE f b  =
         Right (a, new_b) -> let (a', b') = unfoldrE f new_b in (a : a', b')
         Left new_b       -> ([], new_b)
 
-showB :: (BS.Show a) => a -> B.ByteString
-showB = B.concat . BL.toChunks . BS.show
+showB :: (Show a) => a -> B.ByteString
+showB = B.pack . show
 
 readInt_ :: (Num a) => B.ByteString -> a
 readInt_ str =
index 98e45de33f3f9b3945300c3936f40cf27ea8c65b..8acebe0f1852cedc704250028332f01cadeddd5d 100644 (file)
@@ -21,7 +21,6 @@ Executable hedgewars-server
     containers,
     vector,
     bytestring,
-    bytestring-show,
     network >= 2.3,
     random,
     time,