package opium

  1. Overview
  2. No Docs
OCaml web framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

opium-0.20.0.tbz
sha256=326b91866de90baf535f8b7d4b2ff23e39d952e573c04b3c13f1054b59ff2fb6
sha512=59b83e7c8fe5f7ae328fb7f2343fe5b8fb735e8f6ee263cfd6c75bb179688ef7cf2b4586b35a2231ed3f3c1ada543021b7a4759326ae095eb77a5f38b9fa3a8a

doc/src/opium/context.ml.html

Source file context.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
open Import
include Rock.Context

let sexp_of_t m =
  let open Sexp in
  let l =
    fold
      (fun (B (k, v)) l ->
        let name, to_sexp = Key.info k in
        List [ Atom name; to_sexp v ] :: l)
      m
      []
  in
  List l
;;

let pp_hum fmt t = Sexp.pp_hum fmt (sexp_of_t t)

let find_exn t k =
  match find t k with
  | None -> raise Not_found
  | Some s -> s
;;
OCaml

Innovation. Community. Security.