summaryrefslogtreecommitdiff
path: root/compiler/utils/FastString.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2018-11-26 17:47:02 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2018-11-26 17:47:56 +0000
commita58cbf13979d9cd204f4b4b7c343b77fe838a90a (patch)
tree84c8ddecbe4d48e5ddf06d1fcbf2aeb40b30ad7f /compiler/utils/FastString.hs
parent129bf71b1cc85965a449260ca1dc13e2951eaded (diff)
downloadhaskell-wip/T15809.tar.gz
More wibbleswip/T15809
and rebase on today's master
Diffstat (limited to 'compiler/utils/FastString.hs')
-rw-r--r--compiler/utils/FastString.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/utils/FastString.hs b/compiler/utils/FastString.hs
index f9fbeb0e6e..588486bf46 100644
--- a/compiler/utils/FastString.hs
+++ b/compiler/utils/FastString.hs
@@ -71,6 +71,7 @@ module FastString
concatFS,
consFS,
nilFS,
+ isUnderscoreFS,
-- ** Outputing
hPutFS,
@@ -603,6 +604,9 @@ uniqueOfFS (FastString u _ _ _) = u
nilFS :: FastString
nilFS = mkFastString ""
+isUnderscoreFS :: FastString -> Bool
+isUnderscoreFS fs = fs == fsLit "_"
+
-- -----------------------------------------------------------------------------
-- Stats