diff options
author | Ben Gamari <ben@smart-cactus.org> | 2016-07-05 06:06:29 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-07-08 15:06:23 +0200 |
commit | 15751f265d34d797c48270773bdd1a8e77e400bc (patch) | |
tree | e9091f440a926c68f13fc9744a2fe5f4f179b123 | |
parent | 91fd87e2384091f1872f91953e83b299d8e1478f (diff) | |
download | haskell-15751f265d34d797c48270773bdd1a8e77e400bc.tar.gz |
FastString: Add IsString instance
-rw-r--r-- | compiler/utils/FastString.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/utils/FastString.hs b/compiler/utils/FastString.hs index 41889cfdc4..490eb138bf 100644 --- a/compiler/utils/FastString.hs +++ b/compiler/utils/FastString.hs @@ -192,6 +192,9 @@ instance Ord FastString where | otherwise = y compare a b = cmpFS a b +instance IsString FastString where + fromString = fsLit + instance Monoid FastString where mempty = nilFS mappend = appendFS |