What are the adjoint functor pairs corresponding to common monads in Haskell?

后端 未结 3 1578
半阙折子戏
半阙折子戏 2021-01-30 09:14

In category theory, a monad can be constructed from two adjoint functors. In particular, if C and D are categories and F : C --> D and G : D -->

3条回答
  •  悲哀的现实
    2021-01-30 09:31

    • Maybe comes from the free functor into the category of pointed sets and the forgetful functor back
    • [] comes from the free functor into the category of monoids and the forgetful functor back

    But neither of these categories are subcategories of Hask.

提交回复
热议问题