git.iko.soy/typeable/pandoc
on master help sign in
Remove unnecessary CPP condition in UTF8

Base 4.4 is ghc 7.2, so we don't have to worry about getting a lower version.

commitc613dbde01e8145ae10e0d85a8038cc336ea9ad0 authorJesse Rosenthal <jrosenthal@jhu.edu> dateThu 1 Sep 2016, 07:07 (10 years ago) parent7ea16ad
1 file changed+2−7
src/Text/Pandoc/UTF8.hs+2−7
src/Text/Pandoc/UTF8.hs+2−7
@@ -1,4 +1,3 @@
1−{-# LANGUAGE CPP #-}
21{-
32Copyright (C) 2010-2016 John MacFarlane <jgm@berkeley.edu>
43
@@ -116,11 +115,7 @@ fromStringLazy :: String -> BL.ByteString
116115fromStringLazy = TL.encodeUtf8 . TL.pack
117116
118117encodePath :: FilePath -> FilePath
119−decodeArg :: String -> String
120−#if MIN_VERSION_base(4,4,0)
121118encodePath = id
119+
120+decodeArg :: String -> String
122121decodeArg = id
123−#else
124−encodePath = B.unpack . fromString
125−decodeArg = toString . B.pack
126−#endif