summaryrefslogtreecommitdiff
path: root/libraries/template-haskell/Language/Haskell/TH/PprLib.hs
diff options
context:
space:
mode:
authorMikhail Vorozhtsov <mikhail.vorozhtsov@gmail.com>2012-07-15 00:56:17 +0700
committerSimon Marlow <marlowsd@gmail.com>2012-07-16 11:09:56 +0100
commit73c36bca8d8ddcd9769368e6b2ffeef1ed1e6424 (patch)
treea789966eae5ceb1c26b6cd3853cc78acbaa748e1 /libraries/template-haskell/Language/Haskell/TH/PprLib.hs
parent219c653f8b851a8a04163389eac4825199a19980 (diff)
downloadhaskell-73c36bca8d8ddcd9769368e6b2ffeef1ed1e6424.tar.gz
Added multi-way if-expressions support.
Diffstat (limited to 'libraries/template-haskell/Language/Haskell/TH/PprLib.hs')
-rw-r--r--libraries/template-haskell/Language/Haskell/TH/PprLib.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/template-haskell/Language/Haskell/TH/PprLib.hs b/libraries/template-haskell/Language/Haskell/TH/PprLib.hs
index e42c9865db..42856bb289 100644
--- a/libraries/template-haskell/Language/Haskell/TH/PprLib.hs
+++ b/libraries/template-haskell/Language/Haskell/TH/PprLib.hs
@@ -10,7 +10,7 @@ module Language.Haskell.TH.PprLib (
-- * Primitive Documents
empty,
- semi, comma, colon, space, equals,
+ semi, comma, colon, space, equals, arrow,
lparen, rparen, lbrack, rbrack, lbrace, rbrace,
-- * Converting values into documents
@@ -63,6 +63,7 @@ comma :: Doc; -- ^ A ',' character
colon :: Doc; -- ^ A ':' character
space :: Doc; -- ^ A space character
equals :: Doc; -- ^ A '=' character
+arrow :: Doc; -- ^ A "->" string
lparen :: Doc; -- ^ A '(' character
rparen :: Doc; -- ^ A ')' character
lbrack :: Doc; -- ^ A '[' character
@@ -163,6 +164,7 @@ comma = return HPJ.comma
colon = return HPJ.colon
space = return HPJ.space
equals = return HPJ.equals
+arrow = return $ HPJ.text "->"
lparen = return HPJ.lparen
rparen = return HPJ.rparen
lbrack = return HPJ.lbrack