Avoid stack overflow in the compiler

(reverting this reproduces a stack overflow in the compiler!)
This commit is contained in:
Richard Feldman 2022-02-07 00:13:24 -05:00
parent 5a9d76e16f
commit f81fbabf12
No known key found for this signature in database
GPG Key ID: 7E4127D1E4241798

View File

@ -8,7 +8,9 @@ Elem state :
Text Str,
Col (List (Elem state)),
Row (List (Elem state)),
Lazy (Result (Cached state) [ NotCached ] -> Cached state),
Lazy (Result { state, elem : Elem state } [ NotCached ] -> { state, elem : Elem state }),
# TODO FIXME: using this definition of Lazy causes a stack overflow in the compiler!
#Lazy (Result (Cached state) [ NotCached ] -> Cached state),
None,
]