git.iko.soy/typeable/pandoc
on master help sign in
Remove unnecessary CPP condition in UTF8
c613dbdJesse Rosenthal
src/Text/Pandoc/UTF8.hs+2−7
@@ -1,4 +1,3 @@
1−{-# LANGUAGE CPP #-}
2{-
1{-
3Copyright (C) 2010-2016 John MacFarlane <jgm@berkeley.edu>
2Copyright (C) 2010-2016 John MacFarlane <jgm@berkeley.edu>
4
3
@@ -116,11 +115,7 @@ fromStringLazy :: String -> BL.ByteString
116fromStringLazy = TL.encodeUtf8 . TL.pack
115fromStringLazy = TL.encodeUtf8 . TL.pack
117
116
118encodePath :: FilePath -> FilePath
117encodePath :: FilePath -> FilePath
119−decodeArg :: String -> String
120−#if MIN_VERSION_base(4,4,0)
121encodePath = id
118encodePath = id
119+
120+decodeArg :: String -> String
122decodeArg = id
121decodeArg = id
123−#else
124−encodePath = B.unpack . fromString
125−decodeArg = toString . B.pack
126−#endif