| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 07:07:38 GMT
X-Served-By: cache-dfw-kdfw8210113-DFW, cache-bom-vanm7210067-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768633658.660962,VS0,VE872
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
fuzzy-dates: Libary for parsing dates in strings in varied formats.
fuzzy-dates: Libary for parsing dates in strings in varied formats.
Downloads
- fuzzy-dates-0.1.1.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
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.1.0, 0.1.1.1, 0.1.1.2 |
|---|---|
| Change log | ChangeLog.md |
| Dependencies | base (>=4.7 && <5), hourglass, hspec, lens, parsec [details] |
| License | BSD-3-Clause |
| Copyright | 2018 Reed Oei |
| Author | Reed Oei |
| Maintainer | oei.reed@gmail.com |
| Uploaded | by ReedOei at 2020-03-07T01:35:08Z |
| Category | Parsing |
| Home page | https://github.com/ReedOei/fuzzy-dates#readme |
| Bug tracker | https://github.com/ReedOei/fuzzy-dates/issues |
| Source repo | head: git clone https://github.com/ReedOei/fuzzy-dates |
| Distributions | LTSHaskell:0.1.1.2, NixOS:0.1.1.2, Stackage:0.1.1.2 |
| Reverse Dependencies | 2 direct, 0 indirect [details] |
| Downloads | 4347 total (23 in the last 30 days) |
| Rating | 1.75 (votes: 2) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2020-03-07 [all 1 reports] |
Readme for fuzzy-dates-0.1.1.2
[back to package description]fuzzy-dates
fuzzy-dates is a Haskell library for parsing dates when you don't know/care to specify the format of the dates beforehand.
It returns dates and times in the hourglass format.
It is heavily based off of https://gitlab.com/doshitan/hourglass-fuzzy-parsing, which had not been updated for over 2 years at the time of writing, so I created this library. I've added numerous new date formats as well as several functions (shown below) which facilitate easy extraction of dates from text.
Quickstart
Import the main module, then call one of the extract dates functions, like so:
>>> import Data.Dates.Parsing
>>> extractDatesY 2018 "The party will be on 6/9"
[Date 2018 June 9]
>>> import Data.Dates.Parsing
>>> extractDateTimes "This morning, 06.07.16 at 7:35 AM, the fire was stopped." :: IO [DateTime]
[DateTime {dtDate = Date {dateYear = 2016, dateMonth = July, dateDay = 6}, dtTime = TimeOfDay {todHour = 7h, todMin = 35m, todSec = 0s, todNSec = 0ns}}]