packages feed

hsp 0.9.0 → 0.9.1

raw patch · 2 files changed

+5/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ HSP.XMLGenerator: instance [overlap ok] IsName String Text

Files

hsp.cabal view
@@ -1,5 +1,5 @@ Name:                   hsp-Version:                0.9.0+Version:                0.9.1 License:                BSD3 License-File:           LICENSE Author:                 Niklas Broberg, Joel Bjornson
src/HSP/XMLGenerator.hs view
@@ -193,6 +193,10 @@ instance IsName String String where
     toName s = (Nothing, s)
 
+-- | Strings can represent names, meaning a simple name with no domain.
+instance IsName String Text where
+    toName s = (Nothing, Text.pack s)
+
 -- | Names can represent names, of course.
 instance (Show a) => IsName (Name a) a where
     toName = id