diff --git a/Makefile b/Makefile index b0a84cd..f427241 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,16 @@ todo: docker-build: ./scripts/docker-build +upload: + cabal-s3 + cabl sdist + cabal upload dist/*.tar.gz + dot: find src -name '*.hs' | xargs graphmod -q > doc/modules.dot - dot -Tpng doc/modules.dot > doc/modules.png - open doc/modules.png + dot -Tsvg doc/modules.dot > doc/modules.svg + find src -name '*.hs' | xargs graphmod --no-cluster -q > doc/modulesnc.dot + dot -Tsvg doc/modulesnc.dot > doc/modulesnc.svg + open doc/modules.svg + open doc/modulesnc.svg + diff --git a/README.md b/README.md index dca1e85..6ddc50f 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,8 @@ This is intended to be used in two forms. A library, and a debugging tool execut ### Using the library +![Module Dependency Graph](http://i.imgur.com/e2x0TIN.png) + In order to use Deadpan as a library you will need to write a Deadpan monad. This could look something like the following: @@ -159,6 +161,8 @@ You can look for incomplete items in the source by running `make todo`. ## Binaries Pre-compiled binaries can be found for the `deadpan` debugging tool below: + +* * * * diff --git a/doc/modules.png b/doc/modules.png deleted file mode 100644 index 39bdf26..0000000 Binary files a/doc/modules.png and /dev/null differ diff --git a/doc/modules.svg b/doc/modules.svg new file mode 100644 index 0000000..bc5b0bc --- /dev/null +++ b/doc/modules.svg @@ -0,0 +1,178 @@ + + + + + + +G + +cluster_0 + +Data + +cluster_1 + +EJson + +cluster_2 + +Web + +cluster_3 + +DDP + +cluster_4 + +Deadpan + + +u5 + +Main + + +u11 + +Deadpan + + +u5->u11 + + + + +u4 + +EJson + + +u2 + +EJson2Value + + +u4->u2 + + + + +u1 + +EJson + + +u4->u1 + + + + +u0 + +Aeson + + +u4->u0 + + + + +u3 + +Props + + +u3->u4 + + + + +u2->u1 + + + + +u0->u2 + + + + +u0->u1 + + + + +u10 + +Websockets + + +u11->u10 + + + + +u8 + +DSL + + +u11->u8 + + + + +u6 + +Callbacks + + +u11->u6 + + + + +u9 + +GUID + + +u9->u4 + + + + +u8->u4 + + + + +u8->u9 + + + + +u7 + +Comms + + +u8->u7 + + + + +u7->u4 + + + + +u6->u8 + + + + + diff --git a/doc/modulesnc.dot b/doc/modulesnc.dot new file mode 100644 index 0000000..4637bd9 --- /dev/null +++ b/doc/modulesnc.dot @@ -0,0 +1,35 @@ +digraph G { +size="6,4"; +ratio="fill"; +u5[fillcolor="#ccffcc",style="filled",label="Main"]; +u4[fillcolor="#99ff99",style="filled",label="Data.EJson"]; +u3[fillcolor="#66ff66",style="filled",label="Data.EJson.Props"]; +u2[fillcolor="#66ff66",style="filled",label="Data.EJson.EJson2Value"]; +u1[fillcolor="#66ff66",style="filled",label="Data.EJson.EJson"]; +u0[fillcolor="#66ff66",style="filled",label="Data.EJson.Aeson"]; +u11[fillcolor="#99cc99",style="filled",label="Web.DDP.Deadpan"]; +u10[fillcolor="#66cc66",style="filled",label="Web.DDP.Deadpan.Websockets"]; +u9[fillcolor="#66cc66",style="filled",label="Web.DDP.Deadpan.GUID"]; +u8[fillcolor="#66cc66",style="filled",label="Web.DDP.Deadpan.DSL"]; +u7[fillcolor="#66cc66",style="filled",label="Web.DDP.Deadpan.Comms"]; +u6[fillcolor="#66cc66",style="filled",label="Web.DDP.Deadpan.Callbacks"]; +u0 -> u1; +u0 -> u2; +u2 -> u1; +u3 -> u4; +u4 -> u0; +u4 -> u1; +u4 -> u2; +u5 -> u11; +u6 -> u8; +u7 -> u4; +u8 -> u4; +u8 -> u7; +u8 -> u9; +u9 -> u4; +u11 -> u6; +u11 -> u8; +u11 -> u10; + +} + diff --git a/doc/modulesnc.png b/doc/modulesnc.png new file mode 100644 index 0000000..842898f Binary files /dev/null and b/doc/modulesnc.png differ diff --git a/doc/modulesnc.svg b/doc/modulesnc.svg new file mode 100644 index 0000000..1ff94e2 --- /dev/null +++ b/doc/modulesnc.svg @@ -0,0 +1,158 @@ + + + + + + +G + + +u5 + +Main + + +u11 + +Web.DDP.Deadpan + + +u5->u11 + + + + +u4 + +Data.EJson + + +u2 + +Data.EJson.EJson2Value + + +u4->u2 + + + + +u1 + +Data.EJson.EJson + + +u4->u1 + + + + +u0 + +Data.EJson.Aeson + + +u4->u0 + + + + +u3 + +Data.EJson.Props + + +u3->u4 + + + + +u2->u1 + + + + +u0->u2 + + + + +u0->u1 + + + + +u10 + +Web.DDP.Deadpan.Websockets + + +u11->u10 + + + + +u8 + +Web.DDP.Deadpan.DSL + + +u11->u8 + + + + +u6 + +Web.DDP.Deadpan.Callbacks + + +u11->u6 + + + + +u9 + +Web.DDP.Deadpan.GUID + + +u9->u4 + + + + +u8->u4 + + + + +u8->u9 + + + + +u7 + +Web.DDP.Deadpan.Comms + + +u8->u7 + + + + +u7->u4 + + + + +u6->u8 + + + + +