Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Haskell

Name: Anonymous 2007-08-04 16:26 ID:c147O9gn

what is | in this code?

    class (Monad m) => MonadState s m | m -> s where
        get :: m s
        put :: s -> m ()

Name: Anonymous 2007-08-04 16:28 ID:d4JQDkqw

It is most likely an OR in one way or another... I'm afraid my grasp of the Haskell syntax is not that great, many things are still out of my reach.

By the way, I've always wondered what the forall thingy does in type signatures!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List