Skip to content

DestructiveReasoning/hasklock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hasklock

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 size
  • randhasklock: A convenience script allowing for the randomization of foreground and/or background color.

Dependencies

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.

Installing 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

Building Hasklock

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.

About

Binary clock in ncurses written in Haskell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published