git.iko.soy/typeable/xml-lens
on master help sign in
Merge pull request #2 from anton-dessiatov/master

Fixed build agains lens >= 4.0

commitb4d2014e125a5ffe9b2c373111c8d0b271534e2f authorFumiaki Kinoshita <fumiexcel@gmail.com> dateWed 19 Feb 2014, 14:51 (13 years ago) parent29993c2a2de899
2 files changed+4−4
Text/XML/Lens.hs+2−2 xml-lens.cabal+2−2
Text/XML/Lens.hs+2−2
@@ -141,10 +141,10 @@ attrs f e = fmap (\x -> e { elementAttributes = x }) $ f $ elementAttributes e
141141nodes :: Lens' Element [Node]
142142nodes f e = fmap (\x -> e { elementNodes = x }) $ f $ elementNodes e
143143
144−attr :: Name -> IndexedTraversal' Name Element Text
144+attr :: Name -> Traversal' Element Text
145145attr n = attrs . ix n
146146
147−attribute :: Name -> IndexedLens' Name Element (Maybe Text)
147+attribute :: Name -> Lens' Element (Maybe Text)
148148attribute n = attrs . at n
149149
150150-- | Traverse itself with its all children. Rewriting subnodes of each children will break a traversal law.
xml-lens.cabal+2−2
@@ -1,5 +1,5 @@
11name: xml-lens
2−version: 0.1.4
2+version: 0.1.5
33synopsis: Lenses, traversals, prisms for xml-conduit
44description: Lens-based DOM selector
55homepage: https://github.com/fumieval/xml-lens
@@ -20,4 +20,4 @@ library
2020 default-language: Haskell2010
2121 ghc-options: -Wall
2222 exposed-modules: Text.XML.Lens
23− build-depends: base ==4.*, lens >= 3.8 && < 4.2, containers >= 0.4.0 && < 0.6, text == 0.11.*, xml-conduit >= 1.1 && < 1.3
23+ build-depends: base ==4.*, lens >= 4.0 && < 4.2, containers >= 0.4.0 && < 0.6, text == 0.11.*, xml-conduit >= 1.1 && < 1.3