textCombiner :: (Monad m) => PP.Parser TTag m (Maybe TTag)
textCombiner = do first <- PP.draw second <- PP.peek case (first, second) of (Just firstTag@(TS.TagText firstText), (Just secondTag@(TS.TagOpen _ _))) -> trace "1" $ if T.all (== ' ') firstText then PP.draw >> return (Just secondTag) else return (Just firstTag) (Just (TS.TagText firstText), Just (TS.TagText secondText)) -> trace "2" $ PP.draw >> (return $ Just $ TS.TagText $ append firstText secondText) (Just firstTag, _) -> trace "3" $ return (Just firstTag) (Nothing, _) -> trace "4" $ return Nothing
>>> runEffect $ rest >-> P.print
>>>
--
You received this message because you are subscribed to the Google Groups "Haskell Pipes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-pipe...@googlegroups.com.
To post to this group, send email to haskel...@googlegroups.com.