less prototype, less bad code implementation of CCHM type theory
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
325 B

  1. module Presyntax.Presyntax where
  2. import Data.Text (Text)
  3. data Plicity
  4. = Im | Ex
  5. deriving (Eq, Show, Ord)
  6. data Expr
  7. = Var Text
  8. | App Plicity Expr Expr
  9. | Lam Plicity Text Expr
  10. | Pi Plicity Text Expr Expr
  11. deriving (Eq, Show, Ord)
  12. data Statement
  13. = Decl Text Expr
  14. | Defn Text Expr
  15. deriving (Eq, Show, Ord)