Copyright | (c) Michael Szvetits 2020 |
---|---|
License | BSD3 (see the file LICENSE) |
Maintainer | typedbyte@qualified.name |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Strict interpretations of the Map'
effect.
If you don't require disambiguation of multiple map effects (i.e., you only have one map effect in your monadic context), you usually need the untagged interpretations.
Interpreter Type
data StrictMap k v m a Source #
The strict interpreter of the map effect. This type implements the
Map'
type class in a strict manner.
When interpreting the effect, you usually don't interact with this type directly, but instead use one of its corresponding interpretation functions.
Instances
Tagged Interpretations
:: forall tag k v m a. Monad m | |
=> (Map' tag k v `Via` StrictMap k v) m a | The program whose map effect should be handled. |
-> m a | The program with its map effect handled. |
Runs the map effect, initialized with an empty map.