traq
Safe HaskellSafe-Inferred
LanguageHaskell2010

Traq.CQPL.Cost

Contents

Synopsis

Documentation

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

types

type CostMap c = Map Ident c #

Cache the costs of each procedure

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

Monad to compute unitary cost.