hxt-9.3.1.16: A collection of tools for processing XML with Haskell.

Control.Arrow.ArrowNF

Description

Arrows for evaluation of normal form results

Synopsis

# Documentation

strictA :: (Arrow a, NFData b) => a b b Source #

complete evaluation of an arrow result using DeepSeq

this is sometimes useful for preventing space leaks, especially after reading and validation of a document, all DTD stuff is not longer in use and can be recycled by the GC.

class Arrow a => ArrowNF a where Source #

Methods

rnfA :: NFData c => a b c -> a b c Source #

Instances

 Source # MethodsrnfA :: NFData c => LA b c -> LA b c Source # Source # MethodsrnfA :: NFData c => IOLA b c -> IOLA b c Source # ArrowNF (SLA s) Source # MethodsrnfA :: NFData c => SLA s b c -> SLA s b c Source # ArrowNF (IOSLA s) Source # MethodsrnfA :: NFData c => IOSLA s b c -> IOSLA s b c Source #

class (Arrow a, ArrowList a) => ArrowWNF a where Source #

partial evaluation of an arrow result using FlatSeq

There are tow arrows with force the partial evaluation. By convention the 2. should be less lazy than the 1.

These arrows are sometimes useful for preventing space leaks, especially when parsing complex data structures. In many cases the evaluated AST is more space efficient than the unevaluaded with a lot of closures.

Methods

rwnfA :: WNFData c => a b c -> a b c Source #

rwnf2A :: WNFData c => a b c -> a b c Source #

Instances

 Source # MethodsrwnfA :: WNFData c => LA b c -> LA b c Source #rwnf2A :: WNFData c => LA b c -> LA b c Source # Source # MethodsrwnfA :: WNFData c => IOLA b c -> IOLA b c Source #rwnf2A :: WNFData c => IOLA b c -> IOLA b c Source # ArrowWNF (SLA s) Source # MethodsrwnfA :: WNFData c => SLA s b c -> SLA s b c Source #rwnf2A :: WNFData c => SLA s b c -> SLA s b c Source # Source # MethodsrwnfA :: WNFData c => IOSLA s b c -> IOSLA s b c Source #rwnf2A :: WNFData c => IOSLA s b c -> IOSLA s b c Source #