lambda-ast 0.0.1 → 0.0.4
raw patch · 2 files changed
+4/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Language.Lambda.AST: instance Data a => Data (GExpr a)
+ Language.Lambda.AST: instance Typeable1 GExpr
Files
- lambda-ast.cabal +1/−1
- src/Language/Lambda/AST.hs +3/−1
lambda-ast.cabal view
@@ -1,7 +1,7 @@ category: Compilers/Interpreters copyright: (c) 2012 Jonathan Fischoff name: lambda-ast-version: 0.0.1+version: 0.0.4 license: BSD3 license-file: LICENSE author: Jonathan Fischoff
src/Language/Lambda/AST.hs view
@@ -1,11 +1,13 @@+{-# LANGUAGE DeriveDataTypeable #-} {- | An Untyped Lambda Calculus AST -} module Language.Lambda.AST where+import Data.Data -- | A polymorphic version of the AST to allow different symbol types data GExpr a = Var a | App (GExpr a) (GExpr a) | Lam a (GExpr a)- deriving(Show, Eq)+ deriving(Show, Eq, Data, Typeable) -- | A common symbol type choice type Sym = String