Skip to content

Commit

Permalink
Merge branch 'master' of github.com:idris-lang/Idris-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinb committed Mar 22, 2015
2 parents 1bd70a1 + efda0d0 commit 9afcb72
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/effects/state.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ features, but for our purposes, it suffices to know the following:

- ``x <- e`` binds the result of an effectful operation ``e`` to a
variable ``x``. For example, in the above code, ``treeTagAux l`` is
an effectful operation returning a pair ``(Int, BTree a)``, so
``l’`` has type ``(Int, BTree a)``.
an effectful operation returning ``BTree (Int, a)``, so ``l’`` has
type ``BTree (Int, a)``.

- ``pure e`` turns a pure value ``e`` into the result of an effectful
operation.
Expand Down
8 changes: 8 additions & 0 deletions libs/contrib/Data/Graph.idr
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module Data.Graph

import Data.Vect

data Edge e = MkEdge e e

data Graph : Nat −> Nat −> Type −> Type −> Type where
MkGraph : Vect m v −> Vect n (Edge k) −> Graph m n v k
9 changes: 9 additions & 0 deletions libs/contrib/Data/Polyhedra.idr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Data.Polyhedra

import Data.Vect
import Data.Graph

data Face f = MkFace (Vect n f)

data Polyhedron : Nat -> Nat -> Nat -> Type -> Type where
MkPolyhedron : Vect k v -> Vect m (Edge v) -> Vect n (Face v) -> Polyhedron k m n v

0 comments on commit 9afcb72

Please sign in to comment.