GithubHelp home page GithubHelp logo

hl_yaml's People

Contributors

sgrondin avatar

Watchers

 avatar  avatar

hl_yaml's Issues

Simplify Eio functor requirements

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.