Matches current time to given expression
Go to file
2020-06-21 11:23:12 +03:00
app Fix formatting and errors 2017-11-12 13:00:14 +03:00
src Simplify code 2020-06-21 11:23:12 +03:00
test Simplify code 2020-06-21 11:23:12 +03:00
.dockerignore Add docker for building 2019-03-09 22:36:14 +03:00
.editorconfig Add some modules and tests 2017-11-11 20:51:58 +03:00
.gitignore Use package.yaml instead cabal file 2020-06-20 12:39:31 +03:00
LICENSE Fix license 2020-06-20 12:39:46 +03:00
Makefile Simplify code 2020-06-21 11:23:12 +03:00
package.yaml Use package.yaml instead cabal file 2020-06-20 12:39:31 +03:00
README.md Improve readme 2019-03-09 22:36:47 +03:00
Setup.hs Create initial state 2017-11-11 09:45:25 +03:00
stack.yaml Use package.yaml instead cabal file 2020-06-20 12:39:31 +03:00
stack.yaml.lock Use package.yaml instead cabal file 2020-06-20 12:39:31 +03:00

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