Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. @invalid-email-address Anonymous created this gist Aug 5, 2014.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    data TType = TypeInt | TypeBool | TypeVec TType

    data TExpr a where
    TInt :: Int -> TExpr Int
    TBool :: Bool -> TExpr Bool
    TIVar :: StrictText -> TExpr Int
    TBVar :: StrictText -> TExpr Bool
    TSum :: [TExpr Int] -> TExpr Int
    TVecGet ::