summaryrefslogtreecommitdiff
path: root/src/compiler/GF/JavaScript/PrintJS.hs
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2015-08-28 13:59:43 +0000
committerhallgren <hallgren@chalmers.se>2015-08-28 13:59:43 +0000
commit5bfaf10de597af504e6d2784309e533b09a6451c (patch)
treec0aacba9c492304cb3b0f905aa05bbefa1599d2c /src/compiler/GF/JavaScript/PrintJS.hs
parentf2952768d578309a8f75c7da417e3602c4d5e9e9 (diff)
Comment out some dead code found with -fwarn-unused-binds
Also fixed some warnings and tightened some imports
Diffstat (limited to 'src/compiler/GF/JavaScript/PrintJS.hs')
-rw-r--r--src/compiler/GF/JavaScript/PrintJS.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/GF/JavaScript/PrintJS.hs b/src/compiler/GF/JavaScript/PrintJS.hs
index 1e721e353..4a8976138 100644
--- a/src/compiler/GF/JavaScript/PrintJS.hs
+++ b/src/compiler/GF/JavaScript/PrintJS.hs
@@ -22,7 +22,7 @@ render d = rend 0 (map ($ "") $ d []) "" where
t:ts@(t':_) | not (spaceBefore t') -> showString t . rend i ts
t:ts -> space t . rend i ts
[] -> id
- new i = showChar '\n' . replicateS (2*i) (showChar ' ') . dropWhile isSpace
+--new i = showChar '\n' . replicateS (2*i) (showChar ' ') . dropWhile isSpace
space t = showString t . (\s -> if null s then "" else (' ':s))
spaceAfter :: String -> Bool
@@ -39,10 +39,10 @@ concatS = foldr (.) id
concatD :: [Doc] -> Doc
concatD = foldr (.) id
-
+{-
replicateS :: Int -> ShowS -> ShowS
replicateS n f = concatS (replicate n f)
-
+-}
-- the printer class does the job
class Print a where
prt :: Int -> a -> Doc