diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-08-14 01:32:54 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2008-08-14 01:32:54 +0000 |
commit | d00da316227c26bad857998d0398a23917ee0a7b (patch) | |
tree | ef4ae5ec42114e9a8e94cb83f50368c6af849e33 /Text/Pandoc/TH.hs | |
parent | 8388427d230e853466298cfae7abf0ac0af50269 (diff) | |
download | pandoc-d00da316227c26bad857998d0398a23917ee0a7b.tar.gz |
Simplified and improved UTF8 handling:
+ Removed utf8-string cabal configuration flag.
+ Instead, we just include System.IO.UTF8 and Codec.Binary.UTF8.String
from utf8-string package in the source tree, avoiding a dependency
on utf8-string and avoiding crufty custom UTF8 code. (The old
Text.Pandoc.UTF8 had problems with the getContents function.)
+ Removed lots of CPP directives that are no longer needed.
+ In Setup.hs, use '-i..' in running RunTests.hs, so the local UTF8
code will be found.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1411 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Text/Pandoc/TH.hs')
-rw-r--r-- | Text/Pandoc/TH.hs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Text/Pandoc/TH.hs b/Text/Pandoc/TH.hs index 376dfa00d..dfd6be28b 100644 --- a/Text/Pandoc/TH.hs +++ b/Text/Pandoc/TH.hs @@ -1,4 +1,3 @@ -{-# LANGUAGE CPP #-} {-# OPTIONS_GHC -fno-warn-orphans #-} {- Copyright (C) 2008 John MacFarlane <jgm@berkeley.edu> @@ -39,11 +38,7 @@ import Language.Haskell.TH.Syntax (Lift (..)) import qualified Data.ByteString as B import Data.ByteString.Internal ( w2c ) import Prelude hiding ( readFile ) -#ifdef _UTF8STRING import System.IO.UTF8 -#else -import Text.Pandoc.UTF8 -#endif -- | Insert contents of text file into a template. contentsOf :: FilePath -> ExpQ |