korea-holidays: Korea Holidays

[ library, mit, time ] [ Propose Tags ] [ Report a vulnerability ]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4
Dependencies aeson, base (>=4.7 && <5), monad-extras, split, template-haskell, time, yaml [details]
License MIT
Copyright 2019 Kyung Mo Kweon
Author Kyung Mo Kweon
Maintainer kkweon@gmail.com
Category Time
Home page https://github.com/kkweon/korea-holidays#readme
Bug tracker https://github.com/kkweon/korea-holidays/issues
Source repo head: git clone https://github.com/kkweon/korea-holidays
Uploaded by kkweon at 2019-07-14T07:58:52Z
Distributions
Downloads 1970 total (7 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-07-14 [all 1 reports]

Readme for korea-holidays-0.1.0.4

[back to package description]

korea-holidays

Build Status Hackage-Deps Hackage

korea-holidays is a Haskell library to check if a given date is a Korean Holiday.

Usage

Korea.getHoliday 2000 1 1 `shouldBe`
      Just
        Holiday
          {date = KM.MD (1, 1), name = "New Year's Day", lunar = Nothing}

Korea.getHoliday 2019 3 1 `shouldBe`
      Just
        Holiday
          {date = KM.MD (3, 1), name = "March 1 Movement Day", lunar = Nothing}

Add to your dependency

In your package.yaml

dependencies:
- korea-holidays