put artist on rss feed
This commit is contained in:
parent
c1a54a89c5
commit
328ce7bf11
3 changed files with 22 additions and 21 deletions
|
@ -2,7 +2,7 @@
|
|||
module BuilderQQ
|
||||
(b,
|
||||
Builder, toLazyText, fromText, fromString, fromChar,
|
||||
textMap)
|
||||
textMap, ifJust)
|
||||
where
|
||||
|
||||
import Data.Char (isLower, isSpace, isDigit, isAlphaNum)
|
||||
|
@ -186,3 +186,6 @@ fromChar = singleton
|
|||
|
||||
textMap :: (Char -> Builder) -> Text -> Builder
|
||||
textMap f = Text.foldl' (\buf c -> buf <> f c) mempty
|
||||
|
||||
ifJust :: Monoid b => Maybe a -> (a -> b) -> b
|
||||
ifJust x f = maybe mempty f x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue