athanclark / dag Goto Github PK
View Code? Open in Web Editor NEWA well-typed Directed Acyclic Graph in Haskell
License: BSD 3-Clause "New" or "Revised" License
A well-typed Directed Acyclic Graph in Haskell
License: BSD 3-Clause "New" or "Revised" License
This will be difficult. At runtime, we only have someSymbolVal
to give us a type-level symbol, but it gives us an existentially quantified type instead of a top-level type. This will be troublesome to make legitimate.
This is a major flaw. We need a better design for the graphs. Here is what I'm thinking:
type DAG es a = (EdgeSchema es _ _, Graph_ a)
This way, the edges are top-level, and the types (should be) recoverable. Also, this might give rise to a nice monad:
foo = do -- GraphSchema monad
node "foo" Foo $ -- EdgeSchema monad
return ()
node "bar" Bar $
"foo" `to` "bar"
none $ -- Auxilliary way to jump into the edges
"bar" `to` "foo" -- won't compile
So, the only way we can make this work is with a GADT with two generated dealios:
...actually just one.
Hi, the Cabal file for dag
specifies that it must be interpreted Cabal 1.20 or later, when in fact Cabal >= 1.10
would suffice. (Just lower the constraint and run cabal check
to verify that you're requiring a recent enough version; if you choose something below >= 1.10
then cabal will complain). Anyway, would you mind editing your Cabal file at http://hackage.haskell.org/package/dag/maintain to allow older versions of Cabal to run that build?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.