fromString for Fix

This commit is contained in:
crumbtoo committed 2024-04-15 10:07:20 -06:00
1 parent e6a5665d4a
commit 03963832e0
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