Hasklock is a Haskell program that displays a binary clock in the terminal, with the HSCurses library.
The Hasklock package comes with two binaries:
hasklock
: The basic binary clock, which allows customization of foreground and background colors, as well as clock sizerandhasklock
: A convenience script allowing for the randomization of foreground and/or background color.
Hasklock depends on:
- ncurses
- GHC: the Glasgow Haskell Compiler, required if it is desired to build Hasklock
- HSCurses: an ncurses library for Haskell. Can be installed with
$ cabal install hscurses
.
Required if it is desired to build Hasklock.
The git repository at https://github.com/DestructiveReasoning/hasklock provides both source and binary files.
The hasklock executables are provided to avoid having to install ghc and hscurses.
To install the Hasklock binaries:
$ git clone https://github.com/DestructiveReasoning/hasklock
$ cd hasklock
# make install
As mentioned previously, if it is desired to build Hasklock, you must have ncurses, ghc, and hscurses installed.
Building Hasklock can be accomplished as follows:
$ git clone https://github.com/DestructiveReasoning/hasklock
$ cd hasklock
$ make
# make install
Alternatively to make install
, make install clean
may be run to remove the object files that were generated.