1
1
mirror of https://github.com/srid/rib.git synced 2024-11-30 13:52:53 +03:00
Commit Graph

206 Commits

Author SHA1 Message Date
Sridhar Ratnakumar
bbec436401 Refactor 2019-12-30 12:43:52 -05:00
Sridhar Ratnakumar
ced10adaae
Add zulip chat link 2019-12-29 21:12:11 -05:00
Sridhar Ratnakumar
dd64cc5a33
Merge pull request #65 from srid/custom-markup
Vastly simplify API, so users can use custom parsers
2019-12-29 20:51:21 -05:00
Sridhar Ratnakumar
c001688e22 Update README, and final cleanups 2019-12-29 20:50:49 -05:00
Sridhar Ratnakumar
23222b5be2 Rib.Markup -> Rib.Source 2019-12-29 20:14:31 -05:00
Sridhar Ratnakumar
2d17ed6835 Document => Source 2019-12-29 19:01:57 -05:00
Sridhar Ratnakumar
8b0e3d2cec Remove unused code 2019-12-29 18:51:24 -05:00
Sridhar Ratnakumar
276ed5b449 Flip arguments 2019-12-29 18:43:39 -05:00
Sridhar Ratnakumar
89f4843676 Remove type class
Not needed anymore.
2019-12-29 18:37:45 -05:00
Sridhar Ratnakumar
d71d7f83f3 Remove named arguments from type class
Not useful anymore
2019-12-29 17:47:34 -05:00
Sridhar Ratnakumar
521a396531 Remove extractMeta from type class 2019-12-29 13:57:39 -05:00
Sridhar Ratnakumar
84bc8f830f Introduce SubMarkup type
To specify the sub markup type to use in parser.

This is useful for Pandoc, but useless for most other types (so we use `()`)
2019-12-29 13:56:55 -05:00
Sridhar Ratnakumar
fedc95d099 Remove rendering from IsMarkup and Document 2019-12-29 12:42:17 -05:00
Sridhar Ratnakumar
3dfcf20b5f Update ChangeLog 2019-12-29 12:21:02 -05:00
Sridhar Ratnakumar
0bd444c4ca Expose IsMarkup 2019-12-29 12:18:28 -05:00
Sridhar Ratnakumar
d3d86746b8 Derive functor for Document
This is needed so the user can use Some on the repr field
2019-12-29 12:17:38 -05:00
Sridhar Ratnakumar
d92388a3e5 Eliminate Some/Proxy, reverting to simplest API
Some and Proxy can be something the user can use on their code to
multiplex between documents using disparate markup types.
2019-12-29 12:16:51 -05:00
Sridhar Ratnakumar
4f42517abb Remove Markup type in favour of Some and Proxy
Drop dependent-sum as well.
2019-12-28 20:59:14 -05:00
Sridhar Ratnakumar
7def29e4f1 Note about nixpkgs 2019-12-28 20:56:35 -05:00
Sridhar Ratnakumar
9ef7cd159e Add dhall as a depedency; advance shake to 0.18.4 2019-12-28 20:29:28 -05:00
Sridhar Ratnakumar
f638bb13b9 Expose ribInputDir and ribOutputDir 2019-12-28 20:15:24 -05:00
Sridhar Ratnakumar
54e0b66789 Fix #63: create intermediate directories 2019-12-28 12:06:32 -05:00
Sridhar Ratnakumar
5b699a1851 Update README example 2019-12-20 13:45:16 -05:00
Sridhar Ratnakumar
eb0134a4d7
Indicate unreleased 2019-12-19 12:12:48 -05:00
Sridhar Ratnakumar
c43b422328
Multi-parser support (#58)
* WIP, try to move away from type class

Use a Map of patterns to parser type, so as to select the parser
explicitly without using type applications (which unifies it for all
files)

* Use dependent-sum

* Rename to IsMarkup

* Use Data.Some for polymorphic lists

* Refactor out withSomeMarkupDoc

* Move MarkupDoc to Markup module

* Rename

* ChangeLog and import cleanup

* Update README for this PR
2019-12-14 19:42:39 -05:00
Pablo
ef198cc292 Add version constraint on path library 2019-12-14 16:00:08 -05:00
Sridhar Ratnakumar
c8f92833f2 Release 0.5.0.0 2019-12-01 19:13:56 -05:00
Sridhar Ratnakumar
a59175a46f Don't expose Rib.Server
Not used anymore.
2019-12-01 19:11:00 -05:00
Sridhar Ratnakumar
ad25e41416 Refactor ExceptT 2019-11-29 16:09:32 -05:00
Sridhar Ratnakumar
1454481dc0
Add CI configuration (#55) 2019-11-27 12:42:43 -05:00
Sridhar Ratnakumar
f8c1efb8c1 Cleanup TODOs 2019-11-27 10:32:18 -05:00
Sridhar Ratnakumar
efc80f5157 Random refactoring 2019-11-27 10:05:59 -05:00
Sridhar Ratnakumar
ab1b2408f8 Sync README example 2019-11-27 09:03:08 -05:00
Sridhar Ratnakumar
6f7e6e71b6 Update README example 2019-11-26 22:12:35 -05:00
Sridhar Ratnakumar
0a0f9b3b8c Add getters for Document type
Hide the fields
2019-11-26 22:09:57 -05:00
Sridhar Ratnakumar
4d9ffe2c34 Handle parsing errors in Pandoc metadata 2019-11-26 21:58:43 -05:00
Sridhar Ratnakumar
a1909b0d54 Remove unused code from Pandoc module 2019-11-26 21:36:16 -05:00
Sridhar Ratnakumar
9857f240dd Remove MarkupError type familly
not needed
2019-11-26 21:26:58 -05:00
Sridhar Ratnakumar
acaadc6d3a Add ToC to README 2019-11-26 18:13:47 -05:00
Sridhar Ratnakumar
4bb9f22817
Merge pull request #51 from srid/remove-most-error
API improvements
2019-11-26 18:08:39 -05:00
Sridhar Ratnakumar
22c9642bd9 Cleanup and refactor 2019-11-26 17:41:01 -05:00
Sridhar Ratnakumar
65f6c6d67e Add support for automatic metadata parsing 2019-11-26 17:05:06 -05:00
Sridhar Ratnakumar
0cd7a5949b Keep document type in Rib.Document 2019-11-26 16:18:30 -05:00
Sridhar Ratnakumar
94dcc31991 Detach Document type from Markup type class
Separation of concerns! Makes it simpler reason about what's happening.
2019-11-26 16:13:04 -05:00
Sridhar Ratnakumar
ef83dac0f1 Revert "Remove renderDoc from type class"
This reverts commit 7f9a25e0d6.
2019-11-26 15:25:41 -05:00
Sridhar Ratnakumar
5fe7ea3c6b Cosmetic fixes 2019-11-26 15:25:36 -05:00
Sridhar Ratnakumar
eb6898f711 Remove getDocumentUrl and unexpose Markup 2019-11-26 15:13:56 -05:00
Sridhar Ratnakumar
ac07ae7ffe Have Shake report errors with filename 2019-11-26 15:03:56 -05:00
Sridhar Ratnakumar
f8014e92f0 Remove error from mkDoc (Pandoc) 2019-11-26 14:50:29 -05:00
Sridhar Ratnakumar
7f9a25e0d6 Remove renderDoc from type class 2019-11-26 14:25:45 -05:00