Skip to content

jesskay/hr-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published