-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
146 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,26 @@ | ||
open Yocaml | ||
|
||
module Resolver = Gem.Resolver.Make (struct | ||
let source = Path.rel [] | ||
let target = Path.rel [ "_www" ] | ||
end) | ||
|
||
let final_message _cache = Eff.log ~level:`Debug "ring.muhokama done" | ||
|
||
let generate_opml chain = | ||
Action.write_static_file Resolver.Target.ring_opml | ||
(let open Task in | ||
Pipeline.track_files | ||
(Resolver.Source.members :: Resolver.Source.common_deps) | ||
>>> const chain | ||
>>> Gem.Chain.to_opml) | ||
|
||
let process_all () = | ||
let open Yocaml.Eff in | ||
let open Eff in | ||
let* cache, chain = Gem.Action.init_chain (module Resolver) in | ||
return cache | ||
>>= generate_opml chain | ||
>>= Action.store_cache Resolver.Target.cache | ||
>>= final_message | ||
|
||
let () = print_endline "Hello World" | ||
let () = Yocaml_eio.run ~level:`Debug process_all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- xvw | ||
- xhtmlboy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
id: xhtmlboy | ||
display_name: The XHTMLBoy | ||
bio: | ||
I am passionate about computer development and this site/blog will serve as a space to | ||
document my attempts to become a Java Champion or Google Developer Expert. Apart from | ||
software design and (valid) XHTML, I have a particular passion for everything related to | ||
the concept of muscles. I love muscular people. | ||
main_link: | ||
url: https://xhtmlboi.github.io | ||
lang: eng | ||
main_feed: | ||
url: https://xhtmlboi.github.io/feed.xml | ||
lang: eng |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
id: xvw | ||
display_name: Xavier Van de Woestyne | ||
bio: I'm a Belgian developer living in France (Nantes), very interested | ||
in statically typed functional programming. | ||
location: France, Nantes | ||
main_link: | ||
url: https://xvw.lol | ||
lang: fra | ||
main_feed: | ||
url: https://xvw.lol/atom.xml | ||
lang: fra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
let init_chain (module R : Sigs.RESOLVER) = | ||
let open Yocaml.Eff in | ||
let* cache = Yocaml.Action.restore_cache ~on:`Target R.Target.cache in | ||
let* chain = | ||
Yocaml_yaml.Eff.read_file_as_metadata | ||
(module Model.Chain) | ||
~on:`Source R.Source.chain | ||
in | ||
let+ cache, members = | ||
Yocaml.Action.fold ~only:`Files | ||
~where:(Yocaml.Path.has_extension "yml") | ||
~state:[] R.Source.members | ||
(fun path state cache -> | ||
let+ member = | ||
Yocaml_yaml.Eff.read_file_as_metadata | ||
(module Model.Member) | ||
~on:`Source path | ||
in | ||
(cache, member :: state)) | ||
cache | ||
in | ||
(cache, Chain.init ~chain ~members) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters