traq
Safe HaskellSafe-Inferred
LanguageHaskell2010

Traq.CQPL.Cost

Contents

Synopsis

Documentation

programCost :: forall sizeT c precT. (Integral sizeT, CostModel c, precT ~ PrecType c, Ord c, Floating precT) => Program sizeT -> (c, CostMap c) #

types

type CostMap c = Map Ident c #

Cache the costs of each procedure

type CostCalculator sizeT c = ReaderT (CostEnv sizeT) (StateT (CostMap c) (Either String)) #

Monad to compute unitary cost.