/hr-hs

A little reimplementation of https://github.com/LuRsT/hr in Haskell.

Primary LanguageHaskell

hr in Haskell

Inspired by LuRsT's hr, but written in Haskell instead, because why not?

Installation

Clone the repository, or obtain hr.hs by whatever other means, then in the directory it's in, run

$ ghc --make hr.hs  # you will, of course, require GHC for this
$ cp hr ~/bin       # ~/bin should be in your $PATH

Usage

To get a plain and simple line (repeats until terminal width, or 80 characters if your system lacks tput):

$ hr
################################

For more interesting lines, you can give hr arguments, each of which is used as a repeating pattern for one line:

$ hr -
---------------------------------

$ hr - '#' -
---------------------------------
################################
---------------------------------

$ hr '-#-'
-#--#--#--#--#--#--#--#--#--#--#-

$ hr '.^._'
.^._.^._.^._.^._.^._.^._.^._.^._.

And so on.