acme-dont-1.1: A don't construct

Portabilityportable
Stabilityexperimental
MaintainerGracjan Polak <gracjanpolak@gmail.com>

Acme.Dont

Description

The Acme.Dont module provides the indispensable don't command, ported from Perl.

For more information see influential documentation: http://search.cpan.org/~dconway/Acme-Don-t-1.01/t.pm

Usage:

 main = don't $ do
     name <- getLine
     putStrLn $ "hello " ++ name

Synopsis

Documentation

don't :: Monad m => m a -> m ()Source

The Acme.Dont module provides a don't command, which is the opposite of Haskell's built-in do. It is used exactly like the do monadic construct except that, instead of executing the block it controls, it... well... doesn't.

Regardless of the contents of the block, don't returns ().