git.iko.soy/typeable/xml-lens
on master help sign in
Fixed build agains lens >= 4.0. Reflected that in the .cabal file and increased version number to 0.1.5.
commita2de8994554ba43edea86c809f64736169151656 authorAnton Dessiatov <anton.dessiatov@gmail.com> dateTue 18 Feb 2014, 12:41 (13 years ago) parent29993c2
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