Skip to content

Commit

Permalink
düner kebab
Browse files Browse the repository at this point in the history
yay
  • Loading branch information
pqwy committed Mar 10, 2019
1 parent 091ae00 commit 4331cbf
Show file tree
Hide file tree
Showing 30 changed files with 88 additions and 161 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ _build
*.install
*.native
*.byte
.merlin

tmp
*~
Expand Down
2 changes: 0 additions & 2 deletions .merlin

This file was deleted.

18 changes: 10 additions & 8 deletions .ocamlinit
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#require "uucp,uuseg,uutf"
#directory "_build/src"
#load "notty.cma"
#load "notty_top.cma"

#require "unix"
#directory "_build/unix"
#load "notty_unix.cma"
#directory "_build/default/src"
#directory "_build/default/src/.notty.objs/byte"
#directory "_build/default/src-unix"
#directory "_build/default/src-unix/.notty_unix.objs/byte"
#directory "_build/default/src-lwt"
#directory "_build/default/src-lwt/.notty_lwt.objs/byte"

#require "lwt,lwt.unix"
#directory "_build/lwt"
#load "notty.cma"
#load "notty_unix.cma"
#load "notty_lwt.cma"

#use "src/notty_top_init.ml"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Notty's core API was heavily influenced by Haskell's [Vty][vty].
Check out the [documentation], [examples], or peek directly into the [interface]
file.

Building with `pkg/pkg.ml build --with-lwt true --examples true` will produce
several little example programs that also double as tests.
Building with `dune build @examples` will produce several little example
programs that also double as tests.

```OCaml
(* Game of Life with ZX Spectrum kitsch. *)
Expand Down
23 changes: 0 additions & 23 deletions _tags

This file was deleted.

1 change: 0 additions & 1 deletion benchmarks/common.ml

This file was deleted.

3 changes: 3 additions & 0 deletions benchmarks/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(executable
(name speed)
(libraries notty notty.unix common unmark unmark.cli))
2 changes: 0 additions & 2 deletions build

This file was deleted.

3 changes: 3 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(lang dune 1.7)
(name notty)
(version dev)
26 changes: 26 additions & 0 deletions examples/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
(library
(name common)
(modules common)
(libraries notty notty.unix))

(library
(name common_lwt)
(modules common_lwt)
(libraries common notty.lwt))

(executables
(names testpatterns colors almondbread crops cursor cuts emoji inline keys
letters mouse thisbig runes sierpinski rain sierpinski_lwt linear
life)
(modules testpatterns colors almondbread crops cursor cuts emoji inline keys
letters mouse thisbig runes sierpinski rain sierpinski_lwt linear
life)
(libraries common common_lwt))

(alias
(name ex)
(package notty)
(deps testpatterns.exe colors.exe almondbread.exe crops.exe cursor.exe
cuts.exe emoji.exe inline.exe keys.exe letters.exe mouse.exe
thisbig.exe runes.exe sierpinski.exe rain.exe sierpinski_lwt.exe
linear.exe life.exe))
3 changes: 0 additions & 3 deletions lwt/.merlin

This file was deleted.

1 change: 0 additions & 1 deletion lwt/notty_lwt.mllib

This file was deleted.

2 changes: 0 additions & 2 deletions myocamlbuild.ml

This file was deleted.

19 changes: 5 additions & 14 deletions opam → notty.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,15 @@ description:
of composable images. It tries to abstract away the basic terminal programming
model, providing something simpler and more expressive."


build: [
"ocaml" "pkg/pkg.ml" "build" "--dev-pkg" "%{dev}%"
"--with-lwt" "%{lwt:installed}%"
]
build: [ [ "dune" "subst" ] {pinned}
[ "dune" "build" "-p" name "-j" jobs ] ]
depends: [
"ocaml" { >= "4.05.0" }
"ocamlbuild" {build}
"ocamlfind" {build}
"topkg" {build}
"ocb-stubblr" {build & >="0.1.0"}
"ocaml" {>= "4.05.0"}
"dune" {build & >= "1.7"}
"uchar"
"uucp" {>= "2.0.0"}
"uuseg" {>= "1.0.0"}
"uutf" {>= "1.0.0"}
]
depopts: [ "lwt" ]
conflicts: [
"ocb-stubblr" {<"0.1.0"}
"lwt" {<"2.5.2"}
]
conflicts: [ "lwt" {<"2.5.2"} ]
40 changes: 0 additions & 40 deletions pkg/META

This file was deleted.

52 changes: 0 additions & 52 deletions pkg/pkg.ml

This file was deleted.

7 changes: 7 additions & 0 deletions src-lwt/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(library
(public_name notty.lwt)
(synopsis "Notty Lwt+Unix IO")
(name notty_lwt)
(wrapped false)
(optional)
(libraries notty notty.unix lwt lwt.unix))
3 changes: 2 additions & 1 deletion lwt/notty_lwt.ml → src-lwt/notty_lwt.ml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ module Term = struct
winsize fd |> whenopt (set_size t);
Lwt.async (fun () -> write t); (* XXX async? *)
if dispose then
Lwt_sequence.add_r (fun () -> release t) Lwt_main.exit_hooks |> ignore;
Lwt_sequence.add_r (fun () -> release t)
Lwt_main.exit_hooks [@warning "-3"] |> ignore;
t

let events t = t.events
Expand Down
File renamed without changes.
11 changes: 11 additions & 0 deletions src-unix/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(library
(public_name notty.unix)
(synopsis "Notty Unix IO")
(name notty_unix)
(wrapped false)
(c_names winsize)
(c_flags (-Wall -Wextra -O3))
(optional)
(libraries notty unix))

(include_subdirs unqualified)
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions src/.merlin

This file was deleted.

18 changes: 18 additions & 0 deletions src/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
(library
(public_name notty)
(synopsis "Declaring terminals")
(libraries uchar uuseg uutf)
(wrapped false)
(modules notty))

(library
(public_name notty.top)
(synopsis "Notty toplevel support")
(name notty_top)
(wrapped false)
(modules notty_top)
(libraries notty compiler-libs.toplevel))

(install
(section lib)
(files (notty_top_init.ml as top/notty_top_init.ml)))
1 change: 0 additions & 1 deletion src/notty.mllib

This file was deleted.

1 change: 0 additions & 1 deletion src/notty_top.mllib

This file was deleted.

2 changes: 0 additions & 2 deletions unix/.merlin

This file was deleted.

1 change: 0 additions & 1 deletion unix/libnotty_unix_stubs.clib

This file was deleted.

1 change: 0 additions & 1 deletion unix/notty_unix.mllib

This file was deleted.

0 comments on commit 4331cbf

Please sign in to comment.