This commit is contained in:
crumbtoo
2023-11-10 14:34:28 -07:00
parent 1f7272d0f0
commit 0a9e4230ee
2 changed files with 24 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ import Data.Coerce
import Data.Pretty
import Data.List (intersperse)
import Data.Function ((&))
import Data.String
----------------------------------------------------------------------------------
data Expr = Var Name
@@ -44,6 +45,9 @@ data ScDef = ScDef Name [Name] Expr
newtype Program = Program [ScDef]
instance IsString Expr where
fromString = Var
----------------------------------------------------------------------------------
instance Pretty Expr where