acme-dont (empty) → 1.0
raw patch · 4 files changed
+87/−0 lines, 4 filesdep +basesetup-changed
Dependencies added: base
Files
- Acme/Dont.hs +31/−0
- COPYRIGHT +35/−0
- Setup.hs +2/−0
- acme-dont.cabal +19/−0
+ Acme/Dont.hs view
@@ -0,0 +1,31 @@+-- | +-- Module : Acme.Dont +-- Copyright : Gracjan Polak 2009 +-- License : BSD-style +-- Maintainer : Gracjan Polak <gracjanpolak@gmail.com> +-- Stability : experimental +-- Portability : portable +-- +-- 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 +-- +module Acme.Dont where + +-- | 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 (). +-- +don't :: (Monad m) => m a -> m () +don't _action = return ()
+ COPYRIGHT view
@@ -0,0 +1,35 @@+Lua License+-----------++Lua is licensed under the terms of the MIT license reproduced below.+This means that Lua is free software and can be used for both academic+and commercial purposes at absolutely no cost.++For details and rationale, see http://www.lua.org/license.html .++===============================================================================++Copyright (C) 1994-2007 Lua.org, PUC-Rio.+Copyright (C) 2007 Gracjan Polak++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in+all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+THE SOFTWARE.++===============================================================================++(end of COPYRIGHT)
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple +main = defaultMain
+ acme-dont.cabal view
@@ -0,0 +1,19 @@+Name: acme-dont+Version: 1.0+Stability: stable+Exposed-modules: Acme.Dont+Build-type: Simple+License: BSD3+License-File: COPYRIGHT+Copyright: 2009, Gracjan Polak+Author: Gracjan Polak <gracjanpolak@gmail.com>+Maintainer: Gracjan Polak <gracjanpolak@gmail.com>+Synopsis: A don't construct+Description:+ 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.+Category: Acme+Build-depends: base<1000000+Hs-source-dirs: .