svg-tree 0.3.1 → 0.3.2
raw patch · 3 files changed
+23/−7 lines, 3 filesdep ~basedep ~containersdep ~text
Dependency ranges changed: base, containers, text
Files
- changelog +3/−0
- src/Graphics/Svg/XmlParser.hs +14/−1
- svg-tree.cabal +6/−6
changelog view
@@ -1,5 +1,8 @@ -*-change-log-*- +v0.3.2 August 2015+ * Fix: allow compilation with GHC 7.4+ v0.3.1 May 2015 * Fix: Bumping lens dependency and removing upper bound.
src/Graphics/Svg/XmlParser.hs view
@@ -11,6 +11,13 @@ , drawAttributesList ) where ++#if !MIN_VERSION_base(4,6,0)+import Text.Read( reads )+#else+import Text.Read( readMaybe )+#endif+ #if !MIN_VERSION_base(4,8,0) import Control.Applicative( pure, (<$>), (<$) ) import Data.Foldable( foldMap )@@ -25,7 +32,6 @@ import Data.Monoid( Last( Last ), getLast, (<>) ) import Data.List( foldl', intercalate ) import Text.XML.Light.Proc( findAttrBy, elChildren, strContent )-import Text.Read( readMaybe ) import qualified Text.XML.Light as X import qualified Data.Text as T import qualified Data.Text.Lazy as TL@@ -51,6 +57,13 @@ import Text.Printf( printf ) {-import Debug.Trace-}++#if !MIN_VERSION_base(4,6,0)+readMaybe :: Read a => String -> Maybe a+readMaybe str = case reads str of+ [] -> Nothing+ (x, _):_ -> Just x+#endif nodeName :: X.Element -> String nodeName = X.qName . X.elName
svg-tree.cabal view
@@ -1,5 +1,5 @@ name: svg-tree-version: 0.3.1+version: 0.3.2 synopsis: SVG file loader and serializer description: svg-tree provides types representing a SVG document,@@ -29,12 +29,12 @@ Source-Repository this Type: git Location: git://github.com/Twinside/svg-tree.git- Tag: v0.3.1+ Tag: v0.3.2 library hs-source-dirs: src Ghc-options: -O3 -Wall- ghc-prof-options: -rtsopts -Wall -prof -auto-all+ ghc-prof-options: -rtsopts -Wall default-language: Haskell2010 exposed-modules: Graphics.Svg , Graphics.Svg.CssTypes@@ -46,16 +46,16 @@ , Graphics.Svg.CssParser , Graphics.Svg.ColorParser - build-depends: base >= 4.6 && < 4.9+ build-depends: base >= 4.5 && < 4.9 , JuicyPixels >= 3.2 , attoparsec >= 0.12 , scientific >= 0.3- , containers >= 0.5+ , containers >= 0.4 , xml >= 1.3 , bytestring >= 0.10 , linear >= 1.16 , vector >= 0.10- , text >= 1.2+ , text >= 1.1 , transformers >= 0.3 && < 0.5 , mtl >= 2.1 && < 2.3 , lens >= 4.6 && < 5