Control.FlatSeq

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

Copyright | Copyright (C) 2011 Uwe Schmidt
License | MIT
Maintainer | Uwe Schmidt (uwe\@fh-wedel.de)
Stability | experimental
Portability | portable
Safe Haskell | Safe-Inferred
Language | Haskell2010

Control.FlatSeq

Description

Force evaluation like deepseq in Control.DeepSeq, but control the depth of evaluation. flatseq may evaluate more than seq but less than deepseq

Synopsis

- ($!!) :: WNFData a => (a -> b) -> a -> b
- flatseq :: WNFData a => a -> b -> b
- rlnf :: (a -> ()) -> [a] -> ()
- class WNFData a where
  - rwnf :: a -> ()
  - rwnf2 :: a -> ()

# Documentation

($!!) :: WNFData a => (a -> b) -> a -> b infixr 0 #

flatseq :: WNFData a => a -> b -> b #

rlnf :: (a -> ()) -> [a] -> () #

class WNFData a where #

A class of types that can be partially evaluated, but evaluation can be propagated deeper than WHNF

Minimal complete definition

Nothing

Methods

rwnf :: a -> () #

Default for rwnf is reduction to WHNF

rwnf2 :: a -> () #

Default for rwnf2 is rwnf

#### Instances

Instances details

WNFData Word16 # |
Instance details Defined in Control.FlatSeq Methods rwnf :: Word16 -> () # rwnf2 :: Word16 -> () #
WNFData Word32 # |
Instance details Defined in Control.FlatSeq Methods rwnf :: Word32 -> () # rwnf2 :: Word32 -> () #
WNFData Word64 # |
Instance details Defined in Control.FlatSeq Methods rwnf :: Word64 -> () # rwnf2 :: Word64 -> () #
WNFData Word8 # |
Instance details Defined in Control.FlatSeq Methods rwnf :: Word8 -> () # rwnf2 :: Word8 -> () #
WNFData QName # |
Instance details Defined in Text.XML.HXT.DOM.QualifiedName Methods rwnf :: QName -> () # rwnf2 :: QName -> () #
WNFData XName # |
Instance details Defined in Text.XML.HXT.DOM.QualifiedName Methods rwnf :: XName -> () # rwnf2 :: XName -> () #
WNFData DTDElem # |
Instance details Defined in Text.XML.HXT.DOM.TypeDefs Methods rwnf :: DTDElem -> () # rwnf2 :: DTDElem -> () #
WNFData XNode # |
Instance details Defined in Text.XML.HXT.DOM.TypeDefs Methods rwnf :: XNode -> () # rwnf2 :: XNode -> () #
WNFData Integer # |
Instance details Defined in Control.FlatSeq Methods rwnf :: Integer -> () # rwnf2 :: Integer -> () #
WNFData () # |
Instance details Defined in Control.FlatSeq Methods rwnf :: () -> () # rwnf2 :: () -> () #
WNFData Bool # |
Instance details Defined in Control.FlatSeq Methods rwnf :: Bool -> () # rwnf2 :: Bool -> () #
WNFData Char # |
Instance details Defined in Control.FlatSeq Methods rwnf :: Char -> () # rwnf2 :: Char -> () #
WNFData Double # |
Instance details Defined in Control.FlatSeq Methods rwnf :: Double -> () # rwnf2 :: Double -> () #
WNFData Float # |
Instance details Defined in Control.FlatSeq Methods rwnf :: Float -> () # rwnf2 :: Float -> () #
WNFData Int # |
Instance details Defined in Control.FlatSeq Methods rwnf :: Int -> () # rwnf2 :: Int -> () #
WNFData Word # |
Instance details Defined in Control.FlatSeq Methods rwnf :: Word -> () # rwnf2 :: Word -> () #
WNFData a => WNFData (NTree a) # |
Instance details Defined in Data.Tree.NTree.TypeDefs Methods rwnf :: NTree a -> () # rwnf2 :: NTree a -> () #
WNFData a => WNFData [a] # |
Instance details Defined in Control.FlatSeq Methods rwnf :: [a] -> () # rwnf2 :: [a] -> () #
(WNFData a, WNFData b) => WNFData (a, b) # |
Instance details Defined in Control.FlatSeq Methods rwnf :: (a, b) -> () # rwnf2 :: (a, b) -> () #
(WNFData a, WNFData b, WNFData c) => WNFData (a, b, c) # |
Instance details Defined in Control.FlatSeq Methods rwnf :: (a, b, c) -> () # rwnf2 :: (a, b, c) -> () #
(WNFData a, WNFData b, WNFData c, WNFData d) => WNFData (a, b, c, d) # |
Instance details Defined in Control.FlatSeq Methods rwnf :: (a, b, c, d) -> () # rwnf2 :: (a, b, c, d) -> () #