/hcat2

A simple cat program (round 2), in Haskell.

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

hcat2

A simple terminal program, written in Haskell. For illustration purposes. This is just a simple cat program.

Usage

See the help:

hcat2 --help

Cat a file:

hcat2 /path/to/file

Cat multiple files:

hcat2 /path/to/file1 /path/to/file2 ...

Build

Download the project, e.g.:

git clone https://..../hcat2.git
cd hcat2

Configure the project:

make setup

Build it:

make build

The executable is buried deep inside the dist-newstyle directory. Install it somewhere if you like.

To clean:

make clean

Development

Download the project, e.g.:

git clone https://..../hcat2.git
cd hcat2

Configure the project:

make setup

To have cabal build and run it, this is the format:

cabal new-run hcat2 -- /path/to/file1 /path/to/file2 ...

To see the help:

cabal new-run hcat2 -- --help

To clean:

cabal new-clean