MyNixOS website logo
Description

A command-line client for Reddit.

Rascal is a command-line client for Reddit with colors, configurable sorting, threaded comments, and some day most of Reddit's API available.

                              __ 
.----.---.-.-----.----.---.-.|  |
|   _|  _  |__ --|  __|  _  ||  |
|__| |___._|_____|____|___._||__|
                                 

Build Status

rascal is a command-line client for reddit.

It should work on any platform where Haskell runs (Linux, Mac OSX and Windows through MinGW), and aims at making available the whole reddit API (we're not there yet…).

It sports colors, that should soon become configurable, and might not work under Windows (based on ANSI escape sequences, through ansi-terminal).

By default it will open /r/haskell sorted by "new", but you can provide another subreddit as argument on the command line

$ rascal python

It is also possible to define the default subreddit and the default sort option in an INI-style configuration file named .rascalrc in your HOME directory. For instance, it might contain the following (case-sensitive!):

subreddit: programming
linkSort = controversial
commentSort: new
pageComments = True

Here is what rascal looks like when started, and when a self link (marked with a '♦') is chosen (N was pressed in this case). Non-self links and links detected in posts will be opened in your default browser.

screenshot

Comments are shown threaded, with the order defined in the configuration file (defaulting to new), and one page at a time if pageComments is true (default). Comments, like posts, are formatted to avoid cutting words when possible.

threads

Notes

In case you wonder, my iTerm2 is using the dark solarized color scheme. The ASCII title was generated with figlet -f chunky. And the name comes from my own pronunciation of /r/haskell.

Planned Features

  • Configuration for colors
  • OAuth2 login to reddit (subscribed/saved/etc.)
  • more tests

Disclaimer

Please note that rascal is my first Haskell project. As such, it is as much a fun experiment for me to discover the ecosystem and the idioms, than a really useful project. TL;DR: YMMV.

Metadata

Version

1.1.6

License

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows