Skip to content
Snippets Groups Projects
Commit 91a6a9cb authored by Ben Gamari's avatar Ben Gamari
Browse files

Add Monoid instance for FastString

parent aea1e5db
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment