This commit is contained in:
crumbtoo
2023-12-11 17:25:41 -07:00
parent 6c43f86397
commit 7391148d62
2 changed files with 27 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ module Core.Syntax
, Module(..)
, Program(..)
, Program'
, programScDefs
, Expr'
, ScDef'
, Alter'
@@ -93,6 +94,9 @@ data Module b = Module (Maybe (Name, [Name])) (Program b)
newtype Program b = Program [ScDef b]
deriving (Show, Lift)
programScDefs :: Lens' (Program b) [ScDef b]
programScDefs = lens coerce (const coerce)
type Program' = Program Name
type Expr' = Expr Name
type ScDef' = ScDef Name