packages feed

xml-lens 0.1.6.3 → 0.2

raw patch · 4 files changed

+45/−38 lines, 4 filesdep ~case-insensitivedep ~containersdep ~lenssetup-changedPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: case-insensitive, containers, lens, text, xml-conduit

API changes (from Hackage documentation)

- Text.XML.Lens: documentEpilogue :: Document -> [Miscellaneous]
- Text.XML.Lens: documentPrologue :: Document -> Prologue
- Text.XML.Lens: documentRoot :: Document -> Element
- Text.XML.Lens: elementAttributes :: Element -> Map Name Text
- Text.XML.Lens: elementName :: Element -> Name
- Text.XML.Lens: elementNodes :: Element -> [Node]
- Text.XML.Lens: instance AsComment Miscellaneous
- Text.XML.Lens: instance AsComment Node
- Text.XML.Lens: instance AsInstruction Miscellaneous
- Text.XML.Lens: instance AsInstruction Node
- Text.XML.Lens: instance Plated Element
- Text.XML.Lens: instructionData :: Instruction -> Text
- Text.XML.Lens: instructionTarget :: Instruction -> Text
- Text.XML.Lens: nameLocalName :: Name -> Text
- Text.XML.Lens: nameNamespace :: Name -> Maybe Text
- Text.XML.Lens: namePrefix :: Name -> Maybe Text
+ Text.XML.Lens: (...) :: (Applicative f, Plated c) => LensLike f s t c c -> Over p f c c a b -> Over p f s t a b
+ Text.XML.Lens: [documentEpilogue] :: Document -> [Miscellaneous]
+ Text.XML.Lens: [documentPrologue] :: Document -> Prologue
+ Text.XML.Lens: [documentRoot] :: Document -> Element
+ Text.XML.Lens: [elementAttributes] :: Element -> Map Name Text
+ Text.XML.Lens: [elementName] :: Element -> Name
+ Text.XML.Lens: [elementNodes] :: Element -> [Node]
+ Text.XML.Lens: [instructionData] :: Instruction -> Text
+ Text.XML.Lens: [instructionTarget] :: Instruction -> Text
+ Text.XML.Lens: [nameLocalName] :: Name -> Text
+ Text.XML.Lens: [nameNamespace] :: Name -> Maybe Text
+ Text.XML.Lens: [namePrefix] :: Name -> Maybe Text
+ Text.XML.Lens: infixr 9 ...
+ Text.XML.Lens: instance Control.Lens.Plated.Plated Text.XML.Element
+ Text.XML.Lens: instance Text.XML.Lens.AsComment Data.XML.Types.Miscellaneous
+ Text.XML.Lens: instance Text.XML.Lens.AsComment Text.XML.Node
+ Text.XML.Lens: instance Text.XML.Lens.AsInstruction Data.XML.Types.Miscellaneous
+ Text.XML.Lens: instance Text.XML.Lens.AsInstruction Text.XML.Node
- Text.XML.Lens: data Document :: *
+ Text.XML.Lens: data Document
- Text.XML.Lens: data Element :: *
+ Text.XML.Lens: data Element
- Text.XML.Lens: data Instruction :: *
+ Text.XML.Lens: data Instruction
- Text.XML.Lens: data Name :: *
+ Text.XML.Lens: data Name
- Text.XML.Lens: data Node :: *
+ Text.XML.Lens: data Node

Files

LICENSE view
@@ -1,30 +1,30 @@-Copyright (c) 2013, Fumiaki Kinoshita
-
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-    * Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    * Redistributions in binary form must reproduce the above
-      copyright notice, this list of conditions and the following
-      disclaimer in the documentation and/or other materials provided
-      with the distribution.
-
-    * Neither the name of Fumiaki Kinoshita nor the names of other
-      contributors may be used to endorse or promote products derived
-      from this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+Copyright (c) 2013, Fumiaki Kinoshita++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are met:++    * Redistributions of source code must retain the above copyright+      notice, this list of conditions and the following disclaimer.++    * Redistributions in binary form must reproduce the above+      copyright notice, this list of conditions and the following+      disclaimer in the documentation and/or other materials provided+      with the distribution.++    * Neither the name of Fumiaki Kinoshita nor the names of other+      contributors may be used to endorse or promote products derived+      from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Setup.hs view
@@ -1,2 +1,2 @@-import Distribution.Simple
-main = defaultMain
+import Distribution.Simple+main = defaultMain
Text/XML/Lens.hs view
@@ -15,6 +15,7 @@     -- * Lenses, traversals for 'Element'     Element(..)     , (./)+    , (...)     -- ** Names     , name     , localName@@ -54,15 +55,13 @@     , Instruction(..)     , _instructionTarget     , _instructionData-    -- * Reexport-    , module Control.Lens     ) where import Text.XML import Control.Lens import Data.Text (Text) import Data.Map (Map) import Control.Applicative-import Data.CaseInsensitive as CI+import qualified Data.CaseInsensitive as CI  infixr 9 ./ @@ -153,6 +152,7 @@ entire :: Traversal' Element Element entire f e@(Element _ _ ns) = com <$> f e <*> traverse (_Element (entire f)) ns where     com (Element n a _) = Element n a+{-# DEPRECATED entire "Use cosmos or deep instead" #-}  -- | Traverse elements which has the specified *local* name (case-insensitive). named :: CI.CI Text -> Traversal' Element Element@@ -196,3 +196,5 @@ (./) :: (Applicative f, Plated c) => LensLike f s t c c -> Over p f c c a b -> Over p f s t a b (./) = (...) {-# INLINE (./) #-}++{-# DEPRECATED (./) "Use (...) instead" #-}
xml-lens.cabal view
@@ -1,5 +1,5 @@ name:                xml-lens-version:             0.1.6.3+version:             0.2 synopsis:            Lenses, traversals, and prisms for xml-conduit description:         Lens-based DOM selector homepage:            https://github.com/fumieval/xml-lens@@ -8,7 +8,7 @@ license-file:        LICENSE author:              Fumiaki Kinoshita maintainer:          Fumiaki Kinoshita <fumiexcel@gmail.com>-copyright:           Copyright (C) 2015 Fumiaki Kinoshita+copyright:           Copyright (C) 2019 Fumiaki Kinoshita category:            XML build-type:          Simple cabal-version:       >=1.10@@ -21,4 +21,9 @@   default-language:   Haskell2010   ghc-options: -Wall   exposed-modules:     Text.XML.Lens-  build-depends:       base ==4.*, lens >= 4.0 && < 5, containers >= 0.4.0 && < 0.7, text >= 0.7 && <2, xml-conduit >= 1.1 && < 1.4, case-insensitive+  build-depends:       base ==4.*+    , lens >= 4.0 && < 5+    , containers >= 0.4.0 && < 0.7+    , text >= 0.7 && <2+    , xml-conduit >= 1.1 && < 1.9+    , case-insensitive