xml-conduit-writer 0.1.1.1 → 0.1.1.2
raw patch · 2 files changed
+7/−8 lines, 2 filesdep +data-defaultPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies added: data-default
API changes (from Hackage documentation)
- Text.XML.Writer: instance IsString XML
- Text.XML.Writer: instance ToXML ()
- Text.XML.Writer: instance ToXML Bool
- Text.XML.Writer: instance ToXML Char
- Text.XML.Writer: instance ToXML Double
- Text.XML.Writer: instance ToXML Float
- Text.XML.Writer: instance ToXML Int
- Text.XML.Writer: instance ToXML Integer
- Text.XML.Writer: instance ToXML Text
- Text.XML.Writer: instance ToXML XML
- Text.XML.Writer: instance ToXML a => ToXML (Maybe a)
+ Text.XML.Writer: instance Data.String.IsString Text.XML.Writer.XML
+ Text.XML.Writer: instance Text.XML.Writer.ToXML ()
+ Text.XML.Writer: instance Text.XML.Writer.ToXML Data.Text.Internal.Text
+ Text.XML.Writer: instance Text.XML.Writer.ToXML GHC.Integer.Type.Integer
+ Text.XML.Writer: instance Text.XML.Writer.ToXML GHC.Types.Bool
+ Text.XML.Writer: instance Text.XML.Writer.ToXML GHC.Types.Char
+ Text.XML.Writer: instance Text.XML.Writer.ToXML GHC.Types.Double
+ Text.XML.Writer: instance Text.XML.Writer.ToXML GHC.Types.Float
+ Text.XML.Writer: instance Text.XML.Writer.ToXML GHC.Types.Int
+ Text.XML.Writer: instance Text.XML.Writer.ToXML Text.XML.Writer.XML
+ Text.XML.Writer: instance Text.XML.Writer.ToXML a => Text.XML.Writer.ToXML (GHC.Base.Maybe a)
- Text.XML.Writer: element :: ToXML a => Name -> a -> XML
+ Text.XML.Writer: element :: (ToXML a) => Name -> a -> XML
- Text.XML.Writer: elementA :: ToXML a => Name -> [(Name, Text)] -> a -> XML
+ Text.XML.Writer: elementA :: (ToXML a) => Name -> [(Name, Text)] -> a -> XML
- Text.XML.Writer: elementMaybe :: ToXML a => Name -> Maybe a -> XML
+ Text.XML.Writer: elementMaybe :: (ToXML a) => Name -> Maybe a -> XML
- Text.XML.Writer: many :: ToXML a => Name -> [a] -> XML
+ Text.XML.Writer: many :: (ToXML a) => Name -> [a] -> XML
Files
- src/Text/XML/Writer.hs +3/−5
- xml-conduit-writer.cabal +4/−3
src/Text/XML/Writer.hs view
@@ -1,4 +1,5 @@ {-# LANGUAGE OverloadedStrings, TypeSynonymInstances, FlexibleInstances #-}+{-# OPTIONS_GHC -fno-warn-orphans #-} -- IsString for XML -- | Overcome XML insanity, node by node. --@@ -36,12 +37,12 @@ import Text.XML import Control.Monad.Writer.Strict+import Data.Default () import qualified Data.DList as DL import qualified Data.Map as M import Data.Text (Text) import qualified Data.Text as T-import qualified Data.Text.Lazy as TL import qualified Data.Text.Lazy.IO as TL import Data.String (IsString(..)) @@ -145,11 +146,8 @@ toXML = id -- | Don't use [Char] please, it will scare OverloadedStrings.-instance ToXML T.Text where+instance ToXML Text where toXML = content--instance ToXML TL.Text where- toXML = content . T.concat . TL.toChunks -- | XML schema uses lower case. instance ToXML Bool where
xml-conduit-writer.cabal view
@@ -1,5 +1,5 @@ name: xml-conduit-writer-version: 0.1.1.1+version: 0.1.1.2 synopsis: Warm and fuzzy creation of XML documents. description: “It can scarcely be denied that the supreme goal of@@ -21,7 +21,7 @@ cabal-version: >=1.8 source-repository head- type: mercurial+ type: git location: https://bitbucket.org/dpwiz/xml-conduit-writer library@@ -34,7 +34,8 @@ xml-conduit, xml-types, text, mtl, dlist,- containers+ containers,+ data-default test-suite tests type: exitcode-stdio-1.0