anwinged / haskell-cron-matcher

Matches current time to given expression

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Haskell cron matcher

Made just for fun and test haskell.

Usage

Match current time with given cron pattern.

$ haskell-cron-matcher "10-20 * * * *"

See return code for result:

  • 0 - matched
  • 1 - dismatched
  • 2 - pattern parse error

Build

You can use docker for build Stack and application:

$ make build-docker
$ make build

Tests

$ make test

About

Matches current time to given expression

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 91.0%Language:Makefile 9.0%