On Sun, Sep 1, 2013 at 1:05 AM, Nathan Hüsken <nathan.huesken@posteo.de> wrote:
The eqivalent do in C:

void doBlock() {
    if (some preCondition) {
      return;
    }
    ...
}

Brent and Tony have already given the closest Haskell equivalents.

For completeness, it's worth pointing out that the above C is equivalent to

void doBlock() {
    if (some preCondition) {
      return;
    } else {
    ...
    }
}

So you can write it similarly in Haskell using if/then/else.

-- Kim-Ee