Traq.CQPL.Cost
Contents
programCost :: forall size c prec. (Integral size, CostModel c, prec ~ PrecType c, Ord c, Floating prec) => Program size -> (c, CostMap c) #
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.