Matches current time to given expression
Go to file
2019-03-09 22:51:28 +03:00
app Fix formatting and errors 2017-11-12 13:00:14 +03:00
src Improve code style 2019-03-09 22:36:36 +03:00
test Remove year section 2017-11-18 12:36:10 +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 Add docker for building 2019-03-09 22:36:14 +03:00
Dockerfile Add docker for building 2019-03-09 22:36:14 +03:00
haskell-cron-matcher.cabal Fix config 2019-03-09 22:51:28 +03:00
LICENSE Create initial state 2017-11-11 09:45:25 +03:00
Makefile Add docker for building 2019-03-09 22:36:14 +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 Add docker for building 2019-03-09 22:36:14 +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