package tyxml
TyXML is a library for building correct HTML and SVG documents
Install
Dune Dependency
Authors
Maintainers
Sources
tyxml-4.4.0.tbz
sha256=516394dd4a5c31726997c51d66aa31cacb91e3c46d4e16c7699130e204042530
sha512=d5f2187f8410524cec7a14b28e8950837070eb0b6571b015dd06076c2841eb7ccaffa86d5d2307eaf1950ee62f9fb926477dac01c870d9c1a2f525853cb44d0c
doc/src/tyxml.functor/xml_wrap.ml.html
Source file xml_wrap.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
(* TyXML * http://www.ocsigen.org/tyxml * Copyright (C) 2013 Gabriel Radanne <drupyog+caml@zoho.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, with linking exception; * either version 2.1 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1301, USA. *) module type T = sig type 'a t val return : 'a -> 'a t type (-'a, 'b) ft val fmap : ('a, 'b) ft -> 'a t -> 'b t type 'a tlist val nil : unit -> 'a tlist val singleton : 'a t -> 'a tlist val cons : 'a t -> 'a tlist -> 'a tlist val append : 'a tlist -> 'a tlist -> 'a tlist val map : ('a, 'b) ft -> 'a tlist -> 'b tlist end module type NoWrap = T with type 'a t = 'a and type 'a tlist = 'a list and type (-'a, 'b) ft = 'a -> 'b module NoWrap = struct type 'a t = 'a type 'a tlist = 'a list type (-'a, 'b) ft = 'a -> 'b external return : 'a -> 'a = "%identity" let fmap f : 'a t -> 'b t = f let nil () = [] let singleton x = [x] let cons x xs = x::xs let append x y= x@y let map = List.map end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>