-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
191 additions
and
8,085 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
_build | ||
setup.data | ||
setup.log | ||
test.native | ||
lib_test/_tests | ||
tmp | ||
*~ | ||
\.\#* | ||
\#*# | ||
*.install | ||
*.native | ||
*.byte |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
B _build/ | ||
B _build/lib/ | ||
S lib/ | ||
S lib_test/ | ||
PKG mirage-types logs alcotest lwt ptime | ||
PKG bytes | ||
S src | ||
S test | ||
B _build/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
strict_with=always,match_clause=4,strict_else=never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Copyright (c) 2016, Thomas Leonard | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,6 @@ | ||
# OASIS_START | ||
# DO NOT EDIT (digest: 76de9bed8dfe4443828b9e3fbe4562e6) | ||
# Ignore VCS directories, you can use the same kind of rule outside | ||
# OASIS_START/STOP if you want to exclude directories that contains | ||
# useless stuff for the build process | ||
true: annot, bin_annot | ||
<**/.svn>: -traverse | ||
<**/.svn>: not_hygienic | ||
".bzr": -traverse | ||
".bzr": not_hygienic | ||
".hg": -traverse | ||
".hg": not_hygienic | ||
".git": -traverse | ||
".git": not_hygienic | ||
"_darcs": -traverse | ||
"_darcs": not_hygienic | ||
# Library mirage_logs | ||
"lib/mirage_logs.cmxs": use_mirage_logs | ||
<lib/*.ml{,i,y}>: pkg_logs | ||
<lib/*.ml{,i,y}>: pkg_lwt | ||
<lib/*.ml{,i,y}>: pkg_mirage-profile | ||
<lib/*.ml{,i,y}>: pkg_mirage-types | ||
<lib/*.ml{,i,y}>: pkg_ptime | ||
# Executable test_logs | ||
<lib_test/test.{native,byte}>: pkg_alcotest | ||
<lib_test/test.{native,byte}>: pkg_logs | ||
<lib_test/test.{native,byte}>: pkg_lwt | ||
<lib_test/test.{native,byte}>: pkg_lwt.unix | ||
<lib_test/test.{native,byte}>: pkg_mirage-clock-unix | ||
<lib_test/test.{native,byte}>: pkg_mirage-profile | ||
<lib_test/test.{native,byte}>: pkg_mirage-types | ||
<lib_test/test.{native,byte}>: pkg_ptime | ||
<lib_test/test.{native,byte}>: use_mirage_logs | ||
<lib_test/*.ml{,i,y}>: pkg_alcotest | ||
<lib_test/*.ml{,i,y}>: pkg_logs | ||
<lib_test/*.ml{,i,y}>: pkg_lwt | ||
<lib_test/*.ml{,i,y}>: pkg_lwt.unix | ||
<lib_test/*.ml{,i,y}>: pkg_mirage-clock-unix | ||
<lib_test/*.ml{,i,y}>: pkg_mirage-profile | ||
<lib_test/*.ml{,i,y}>: pkg_mirage-types | ||
<lib_test/*.ml{,i,y}>: pkg_ptime | ||
<lib_test/*.ml{,i,y}>: use_mirage_logs | ||
# OASIS_STOP | ||
true: warn(A), strict_sequence | ||
true : bin_annot, safe_string, package(bytes) | ||
true : package(logs), package(mirage-types), package(lwt), package(mirage-profile), package(ptime) | ||
<test/*> : package(alcotest), package(lwt.unix) | ||
<src> : include | ||
<test> : include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
# This script is only used for developement. It is removed by the | ||
# distribution process. | ||
|
||
set -e | ||
|
||
OCAMLBUILD=${OCAMLBUILD:="ocamlbuild -use-ocamlfind -classic-display \ | ||
-tag debug"} | ||
|
||
action () | ||
{ | ||
case $1 in | ||
default) topkg build ;; | ||
test|tests) topkg build && topkg test ;; | ||
doc) shift; topkg doc --dev $* ;; | ||
api-doc) shift; topkg doc $* ;; | ||
clean) topkg clean ;; | ||
*) $OCAMLBUILD $* ;; | ||
esac | ||
} | ||
|
||
if [ $# -eq 0 ]; | ||
then action default ; | ||
else action $*; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Mirage_logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Mirage_logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
/* Copyright (c) 2016 Daniel C. Bünzli. All rights reserved. | ||
Distributed under the ISC license, see terms at the end of the file. */ | ||
|
||
/* Reset a few things. */ | ||
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre, | ||
a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp, | ||
small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset, | ||
form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td | ||
{ margin: 0; padding: 0; border: 0 none; outline: 0; font-size: 100%; | ||
font-weight: inherit; font-style:inherit; font-family:inherit; | ||
line-height: inherit; vertical-align: baseline; text-align:inherit; | ||
color:inherit; background: transparent; } | ||
|
||
table { border-collapse: collapse; border-spacing: 0; } | ||
|
||
/* Basic page layout */ | ||
|
||
body { font: normal 10pt/1.375em helvetica, arial, sans-serif; text-align:left; | ||
margin: 1.375em 10%; min-width: 40ex; max-width: 72ex; | ||
color: black; background: transparent /* url(line-height-22.gif) */; } | ||
|
||
b { font-weight: bold } | ||
em { font-style: italic } | ||
|
||
tt, code, pre { font-family: WorkAroundWebKitAndMozilla, monospace; | ||
font-size: 1em; } | ||
pre code { font-size : inherit; } | ||
.codepre { margin-bottom:1.375em /* after code example we introduce space. */ } | ||
|
||
.superscript,.subscript | ||
{ font-size : 0.813em; line-height:0; margin-left:0.4ex;} | ||
.superscript { vertical-align: super; } | ||
.subscript { vertical-align: sub; } | ||
|
||
/* ocamldoc markup workaround hacks */ | ||
|
||
hr, hr + br, div + br, center + br, span + br, ul + br, ol + br, pre + br | ||
{ display: none } /* annoying */ | ||
|
||
div.info + br { display:block} | ||
|
||
.codepre br + br { display: none } | ||
h1 + pre { margin-bottom:1.375em} /* Toplevel module description */ | ||
|
||
/* Sections and document divisions */ | ||
|
||
/* .navbar { margin-bottom: -1.375em } */ | ||
h1 { font-weight: bold; font-size: 1.5em; /* margin-top:1.833em; */ | ||
margin-top:0.917em; padding-top:0.875em; | ||
border-top-style:solid; border-width:1px; border-color:#AAA; } | ||
h2 { font-weight: bold; font-size: 1.313em; margin-top: 1.048em } | ||
h3 { font-weight: bold; font-size: 1.125em; margin-top: 1.222em } | ||
h3 { font-weight: bold; font-size: 1em; margin-top: 1.375em} | ||
h4 { font-style: italic; } | ||
|
||
/* Used by OCaml's own library documentation. */ | ||
h6 { font-weight: bold; font-size: 1.125em; margin-top: 1.222em } | ||
.h7 { font-weight: bold; font-size: 1em; margin-top: 1.375em } | ||
|
||
p { margin-top: 1.375em } | ||
pre { margin-top: 1.375em } | ||
.info { margin: 0.458em 0em -0.458em 2em;}/* Description of types values etc. */ | ||
td .info { margin:0; padding:0; margin-left: 2em;} /* Description in indexes */ | ||
|
||
ul, ol { margin-top:0.688em; padding-bottom:0.687em; | ||
list-style-position:outside} | ||
ul + p, ol + p { margin-top: 0em } | ||
ul { list-style-type: square } | ||
|
||
|
||
/* h2 + ul, h3 + ul, p + ul { } */ | ||
ul > li { margin-left: 1.375em; } | ||
ol > li { margin-left: 1.7em; } | ||
/* Links */ | ||
|
||
a, a:link, a:visited, a:active, a:hover { color : #00B; text-decoration: none } | ||
a:hover { text-decoration : underline } | ||
*:target {background-color: #FFFF99;} /* anchor highlight */ | ||
|
||
/* Code */ | ||
|
||
.keyword { font-weight: bold; } | ||
.comment { color : red } | ||
.constructor { color : green } | ||
.string { color : brown } | ||
.warning { color : red ; font-weight : bold } | ||
|
||
/* Functors */ | ||
|
||
.paramstable { border-style : hidden ; padding-bottom:1.375em} | ||
.paramstable code { margin-left: 1ex; margin-right: 1ex } | ||
.sig_block {margin-left: 1em} | ||
|
||
/* Images */ | ||
|
||
img { margin-top: 1.375em } | ||
|
||
/*--------------------------------------------------------------------------- | ||
Copyright (c) 2016 Daniel C. Bünzli | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
---------------------------------------------------------------------------*/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.