mirror of
https://github.com/alpmestan/taggy.git
synced 2024-08-16 10:20:30 +03:00
Merge pull request #5 from fmapfmapfmap/combinators
Expose Text.Taggy.Combinators.
This commit is contained in:
commit
ab63f21ebd
@ -12,16 +12,18 @@ module Text.Taggy
|
||||
, module Text.Taggy.Types
|
||||
, module Text.Taggy.Parser
|
||||
, module Text.Taggy.DOM
|
||||
, module Text.Taggy.Combinators
|
||||
) where
|
||||
|
||||
import Data.Text (Text)
|
||||
import Text.Taggy.Types
|
||||
import Text.Taggy.Parser
|
||||
import Text.Taggy.DOM
|
||||
import Text.Taggy.Combinators
|
||||
|
||||
linksIn :: [Tag] -> [Text]
|
||||
linksIn = map attrValue
|
||||
. filter ((=="href") . attrKey)
|
||||
. concat
|
||||
. map attrs
|
||||
. tagsNamed "a"
|
||||
. tagsNamed "a"
|
||||
|
@ -15,6 +15,7 @@ cabal-version: >=1.10
|
||||
|
||||
library
|
||||
exposed-modules: Text.Taggy,
|
||||
Text.Taggy.Combinators,
|
||||
Text.Taggy.DOM,
|
||||
Text.Taggy.Entities,
|
||||
Text.Taggy.Parser,
|
||||
|
Loading…
Reference in New Issue
Block a user