glpk-hs-0.3.5: Comprehensive GLPK linear programming bindings

Safe HaskellSafe
LanguageHaskell98

Control.Monad.LPMonad.Supply.Class

Synopsis

Documentation

class Monad m => MonadSupply s m | m -> s where Source

A class implemented by monads that can supply values of type s. Minimal implementation: supplyNew or supplyN.

Minimal complete definition

Nothing

Methods

supplyNew :: m s Source

Supply a new value of type s.

supplyN :: Int -> m [s] Source

Supply n values of type s.