fromString for Fix

This commit is contained in:
crumbtoo committed 2024-02-26 14:59:37 -07:00
1 parent c8967572a6
commit 4bbf3a3afe
1 file changed
+3
+3
View File
@@ -88,6 +88,9 @@ type Expr b = Fix (ExprF b)
instance IsString (ExprF b a) where
fromString = VarF . fromString
instance (IsString (f (Fix f))) => IsString (Fix f) where
fromString = Fix . fromString
data Type = TyFun
| TyVar Name
| TyApp Type Type