package mirage
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=1155b5e9a585d3b44dfdd72777d94a7222b0f88a1737593bfb1f09954b6fb914
sha512=c59a0051f1037d7dd5bb81dfc8a265117b533383d0b285e0c2101b44d2ca8bcab40c432ce696a5b44397216e78ac59863f1ab6c5fb33bb338ca18d7ef359500f
doc/mirage.functoria/Functoria/Impl/index.html
Module Functoria.ImplSource
The type for values representing module implementations of type 'a.
The type for device whose dependencies have type abstract.
app_has_no_arguments i is true if the argument list is empty and it is an application, false otherwise.
pp_abstract is the pretty-printer for abstract module implementations.
if_t v t1 t2 is t1 if v is resolved to true and t2 otherwise.
match_t v cases ~default chooses the tementation amongst cases by matching the v's value. default is chosen if no value matches.
local_libs t is the list of of local libraries that are needed by t.
val v :
?packages:Package.t list ->
?packages_v:Package.t list Key.value ->
?runtime_args:Runtime_arg.t list ->
?keys:Key.t list ->
?extra_deps:abstract list ->
?connect:(Info.t -> string -> string list -> 'a Device.code) ->
?dune:(Info.t -> Dune.stanza list) ->
?configure:(Info.t -> unit Action.t) ->
?files:(Info.t -> Fpath.t list) ->
string ->
'a Type.t ->
'a tv ... is of_device @@ Device.v ...
val main :
?pos:(string * int * int * int) ->
?packages:Package.t list ->
?packages_v:Package.t list Key.value ->
?runtime_args:Runtime_arg.t list ->
?keys:Key.t list ->
?extra_deps:abstract list ->
string ->
'a Type.t ->
'a tmain ... name ty is v ... ~connect name ty where connect is <name>.start <args>
Applications
with_left_most_device ctx t f applies f on the left-most device in f. If node are resolved using ctx.
simplify ~full ~context impl simplifies the implementation impl according to keys present in the context.
If full is true, then the default values of keys are used in their absence. Otherwise, absent keys are left un-simplified.
eval ~context impl fully evaluates the implementation impl according to keys present in the context. It returns a graph composed only of devices.
Collections
The description of a vertex