Browse Source

Initial commit

master
Peter J. Jones 5 years ago
commit
d453820342
4 changed files with 79 additions and 0 deletions
  1. 26
    0
      LICENSE
  2. 2
    0
      Setup.hs
  3. 17
    0
      src/Main.hs
  4. 34
    0
      wc-streams.cabal

+ 26
- 0
LICENSE View File

@@ -0,0 +1,26 @@
Copyright (c) 2014 Peter Jones <pjones@devalot.com>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the
distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

+ 2
- 0
Setup.hs View File

@@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain

+ 17
- 0
src/Main.hs View File

@@ -0,0 +1,17 @@
{-

This file is part of the wc-streams package. It is subject to the
license terms in the LICENSE file found in the top-level directory of
this distribution and at git://pmade.com/wc-streams/LICENSE. No part
of wc-streams package, including this file, may be copied, modified,
propagated, or distributed except according to the terms contained in
the LICENSE file.

-}

--------------------------------------------------------------------------------
module Main (main) where

--------------------------------------------------------------------------------
main :: IO ()
main = undefined

+ 34
- 0
wc-streams.cabal View File

@@ -0,0 +1,34 @@
name: wc-streams
version: 0.1.0.0
synopsis: Haskell implementation of the Unix wc utility using io-streams.
description: Demonstration of the io-streams library for a Boulder Haskell presentation.
license: BSD2
license-file: LICENSE
author: Peter J. Jones <pjones@devalot.com>
maintainer: Peter J. Jones <pjones@devalot.com>
copyright: Copyright (c) 2014 Peter J. Jones
category: System
build-type: Simple
cabal-version: >=1.10

--------------------------------------------------------------------------------
flag maintainer
description: Enable settings for the package maintainer.
manual: True
default: False

--------------------------------------------------------------------------------
executable wc
main-is: Main.hs
-- other-modules:
-- other-extensions:
hs-source-dirs: src
default-language: Haskell2010

ghc-options: -Wall -rtsopts
ghc-prof-options: -fprof-auto-top -fprof-cafs

if flag(maintainer)
ghc-options: -Werror

build-depends: base >= 4.7 && < 5.0

Loading…
Cancel
Save