acme-dont-1.2: A "don't" construct
CopyrightGracjan Polak 2009
LicenseBSD3
MaintainerJack Kelly <jack@jackkelly.name>
Stabilitystable
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Acme.Dont

Description

Provides the indispensable don't command, ported from Perl. It is used exactly like the do monadic construct except that, instead of executing the block it controls, it... well... doesn't.

Usage:

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

Documentation

don't :: Applicative f => f a -> f () Source #

Do not execute the argument.