Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkweon/korea-holidays
Korea Holiday Library in Haskell
https://github.com/kkweon/korea-holidays
Last synced: 24 days ago
JSON representation
Korea Holiday Library in Haskell
- Host: GitHub
- URL: https://github.com/kkweon/korea-holidays
- Owner: kkweon
- License: mit
- Created: 2019-07-03T22:42:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-14T09:42:01.000Z (over 5 years ago)
- Last Synced: 2024-10-29T08:21:48.070Z (2 months ago)
- Language: Haskell
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# korea-holidays
[![Build Status](https://travis-ci.com/kkweon/korea-holidays.svg?branch=master)](https://travis-ci.com/kkweon/korea-holidays)
![Hackage-Deps](https://img.shields.io/hackage-deps/v/korea-holidays.svg)
![Hackage](https://img.shields.io/hackage/v/korea-holidays.svg)**korea-holidays** is a Haskell library to check if a given date is a Korean
Holiday.## Usage
```haskell
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`
```yaml
dependencies:
- korea-holidays
```