sgrondin / hl_yaml Goto Github PK
View Code? Open in Web Editor NEWHigh Level YAML
License: MIT License
High Level YAML
License: MIT License
From today's call; this simplification might be useful:
diff --git a/src/hl_yaml.ml b/src/hl_yaml.ml
index 4df4fa0..5dbcd8b 100644
--- a/src/hl_yaml.ml
+++ b/src/hl_yaml.ml
@@ -504,11 +504,11 @@ module type Intf_Eio = sig
end
module Make_Eio (Eio : S.S_Eio) :
- Intf_Eio with type 'a io := 'a and type filepath := Eio.Fs.dir_ty Eio.Path.t = struct
+ Intf_Eio with type 'a io := 'a and type filepath := [`Dir] Eio.Path.t = struct
module M = Make (struct
include Non_Monadic
- type filepath = Eio.Fs.dir_ty Eio.Path.t
+ type filepath = [`Dir] Eio.Path.t
let read_file filepath = Eio.Path.load filepath
end)
diff --git a/src/hl_yaml.mli b/src/hl_yaml.mli
index 3de5259..09d8172 100644
--- a/src/hl_yaml.mli
+++ b/src/hl_yaml.mli
@@ -93,4 +93,4 @@ module type Intf_Eio = sig
end
module Make_Eio : functor (Eio : S.S_Eio) ->
- Intf_Eio with type 'a io := 'a and type filepath := Eio.Fs.dir_ty Eio.Path.t
+ Intf_Eio with type 'a io := 'a and type filepath := [`Dir] Eio.Path.t
diff --git a/src/s.ml b/src/s.ml
index 4863f42..9507a2c 100644
--- a/src/s.ml
+++ b/src/s.ml
@@ -40,24 +40,8 @@ module type S_Lwt_io = sig
end
module type S_Eio = sig
- module Resource : sig
- type ('t, -'tags) handler
-
- type -'tags t = T : ('t * ('t, 'tags) handler) -> 'tags t
- end
-
- module Std : sig
- type 'a r = 'a Resource.t
- end
-
- module Fs : sig
- type dir_ty = [ `Dir ]
-
- type 'a dir = ([> dir_ty ] as 'a) Std.r
- end
-
module Path : sig
- type 'a t = 'a Fs.dir * string
+ type 'a t constraint 'a = [> `Dir]
val load : 'a t -> string
--
2.39.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.