| Copyright | (c) Roman Leshchinskiy 2009 |
|---|---|
| License | BSD-style |
| Maintainer | Roman Leshchinskiy <rl@cse.unsw.edu.au> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Vector.Fusion.Util
Description
Fusion-related utility types
Synopsis
- newtype Id a = Id {
- unId :: a
- data Box a = Box {
- unBox :: a
- delay_inline :: (a -> b) -> a -> b
- delayed_min :: Int -> Int -> Int
Documentation
Identity monad
Instances
| Monad Id Source # | |
| Functor Id Source # | |
| Applicative Id Source # | |
| Eq1 (Bundle Id v) | |
| Ord1 (Bundle Id v) | |
Defined in Data.Vector.Fusion.Bundle Methods liftCompare :: (a -> b -> Ordering) -> Bundle Id v a -> Bundle Id v b -> Ordering | |
| Eq a => Eq (Bundle Id v a) | |
| Ord a => Ord (Bundle Id v a) | |
Defined in Data.Vector.Fusion.Bundle | |
delay_inline :: (a -> b) -> a -> b Source #
Delay inlining a function until late in the game (simplifier phase 0).
delayed_min :: Int -> Int -> Int Source #
min inlined in phase 0