fuzzy-dates alternatives and similar packages
Based on the "Parsing" category.
Alternatively, view fuzzy-dates alternatives based on common mentions on social networks and blogs.
-
Earley
Parsing all context-free grammars using Earley's algorithm in Haskell. -
trifecta
Parser combinators with highlighting, slicing, layout, literate comments, Clang-style diagnostics and the kitchen sink -
parser-combinators
Lightweight package providing commonly useful parser combinators -
replace-megaparsec
Stream editing with Haskell Megaparsec parsers -
descriptive
Self-describing consumers/parsers; forms, cmd-line args, JSON, etc. -
scanner
Fast non-backtracking incremental combinator parsing for bytestrings -
pipes-aeson
Encode and decode JSON streams using Aeson and Pipes. -
incremental-parser
Haskell parsing combinator liibrary that can be fed the input and emit the parsed output incrementally -
parsec-free
Parsec API encoded as a deeply-embedded DSL, for debugging and analysis -
data-stm32
ARM SVD and CubeMX XML parser and pretty printer for STM32 family -
replace-attoparsec
Stream editing with Haskell Attoparsec parsers -
hsemail
Haskell Parsec parsers for the syntax defined in RFC2821 and 2822 -
parsec-parsers
Orphan instances so you can use `parsers` with `parsec`. -
matrix-market-attoparsec
Attoparsec parsers for the NIST Matrix Market format -
attoparsec-parsec
An Attoparsec compatibility layer for Parsec -
record-syntax
A library for parsing and processing the Haskell syntax sprinkled with anonymous records -
attoparsec-expr
Port of parsec's expression parser to attoparsec. -
streaming-binary
Incremental serialization and deserialization of Haskell values. -
antlrc
Haskell binding to the ANTLR parser generator C runtime library http://www.antlr.org/wiki/display/ANTLR3/ANTLR3+Code+Generation+-+C
Clean code begins in your IDE with SonarLint
Do you think we are missing an alternative of fuzzy-dates or a related project?
README
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}}]