Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
abstract the Value
type family into a type class that can be
interacted with somewhat generically.
Documentation
class Val val ⇒ ValueFromList val where Source #
valueFromList ∷ Integer → [(PolicyID, AssetName, Integer)] → val Source #
insert ∷ (Integer → Integer → Integer) → PolicyID → AssetName → Integer → val → val Source #
gettriples ∷ val → (Integer, [(PolicyID, AssetName, Integer)]) Source #