on master help sign in
drop wcwidth module in preference to pure-haskell wcwidth implementation
commitbe67a29260044af1ef5fc460e9e62299a85988e1 authorAgentM <agentm@themactionfaction.com> dateThu 12 Apr 2018, 18:34 (9 years ago) parentdc3ee07
3 files changed+4−3
project-m36.cabal+2−1 src/lib/ProjectM36/Relation/Show/Term.hs+1−1 src/lib/ProjectM36/TransactionGraph/Persist.hs+1−1
project-m36.cabal+2−1
@@ -57,7 +57,7 @@ Library
5757 ,time
5858 ,hashable-time
5959 ,old-locale
60− ,wcwidth
60+ ,rset
6161 --used for CSV parsing
6262 ,attoparsec
6363 ,either
@@ -113,6 +113,7 @@ Library
113113 ProjectM36.Relation.Show.HTML,
114114 ProjectM36.StaticOptimizer,
115115 ProjectM36.Relation.Show.Term,
116+ ProjectM36.WCWidth,
116117 ProjectM36.Relation.Show.CSV,
117118 ProjectM36.Relation.Show.Gnuplot,
118119 ProjectM36.Relation.Parse.CSV,
src/lib/ProjectM36/Relation/Show/Term.hs+1−1
@@ -10,7 +10,7 @@ import qualified Data.List as L
1010import qualified Data.Text as T
1111import Control.Arrow hiding (left)
1212import Data.Monoid
13−import Data.Char.WCWidth --guess the width that the character will appear as in the terminal
13+import ProjectM36.WCWidth --guess the width that the character will appear as in the terminal
1414
1515boxV :: StringType
1616boxV = "│"
src/lib/ProjectM36/TransactionGraph/Persist.hs+1−1
@@ -214,7 +214,7 @@ readGraphTransactionIdFile dbdir = do
214214 Right . map grapher . T.lines <$> readUTF8FileOrError (transactionLogPath dbdir)
215215
216216--rationale- reading essential database files must fail hard
217−readUTF8FileOrError :: FilePath -> IO (T.Text)
217+readUTF8FileOrError :: FilePath -> IO T.Text
218218readUTF8FileOrError pathIn = do
219219 eFileBytes <- try (BS.readFile pathIn) :: IO (Either IOError BS.ByteString)
220220 case eFileBytes of