korea-holidays: Korea Holidays

[ library, mit, time ] [ Propose Tags ]

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
Change log ChangeLog.md
Dependencies aeson, base (>=4.7 && <5), monad-extras, split, template-haskell, yaml [details]
License MIT
Copyright 2019 Kyung Mo Kweon
Author Kyung Mo Kweon
Maintainer kkweon@gmail.com
Category Time
Home page https://github.com/githubuser/korea-holidays#readme
Bug tracker https://github.com/githubuser/korea-holidays/issues
Source repo head: git clone https://github.com/githubuser/korea-holidays
Uploaded by kkweon at 2019-07-04T07:02:25Z
Distributions
Downloads 1860 total (19 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-04 [all 1 reports]

Readme for korea-holidays-0.1.0.2

[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