Haskell.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

[Haskell-cafe] trying to understand monad transformers....

Daryoush Mehrtash

9 Sep 2008 9 Sep '08
6:39 a.m.

The MaybeT transformer is defined as: newtype MaybeT m a = MaybeT {runMaybeT :: m (Maybe http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:Maybe a)} instance Functor http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:Functo... m => Functor http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:Functo... (MaybeT m) where fmap http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:fmap f x = MaybeT $ http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:. fmap http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:fmap (fmap http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:fmap f) $ http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:. runMaybeT x .... Question: What does "runMaybeT x" mean? Thanks, Daryoush

Attachments:

  • attachment.html (text/html — 1.9 KB)
0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.9.