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