如何阅读m-> e? [重复]

问题描述 投票:-1回答:1

此问题已经在这里有了答案:

MonadError的定义

class (Monad m) => MonadError e m | m -> e where
    -- | Is used within a monadic computation to begin exception processing.
    throwError :: e -> m a

我想知道,如何阅读m -> e?这是什么意思?

haskell
1个回答
0
投票

这称为功能依赖性。它记录在这里https://wiki.haskell.org/Functional_dependencies

© www.soinside.com 2019 - 2024. All rights reserved.