summaryrefslogtreecommitdiff
path: root/compiler/utils/FastString.hs
diff options
context:
space:
mode:
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 ea95d84763..27bb510299 100644
--- a/compiler/utils/FastString.hs
+++ b/compiler/utils/FastString.hs
@@ -192,6 +192,10 @@ instance Ord FastString where
| otherwise = y
compare a b = cmpFS a b
+instance Monoid FastString where
+ mempty = nilFS
+ mappend = appendFS
+
instance Show FastString where
show fs = show (unpackFS fs)