You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to have a way to crash at runtime. For example, Elm programs have Debug.todo which is sometimes useful.
I've tried to use the "cloning non-affine functions" method, but it doesn't work when you're using currying:
typeUnit=Unitpanic_=letnonaffine=@a (a,a)letboom= (nonaffine,nonaffine)
(panic (Unit/Unit)) # doesn't work when we use `panic a = let ...; (panic a)`# successfully crashes (ERROR: attempt to clone a non-affine global reference.)Basics/appendab= (panic (Unit/Unit))
# doesn't work, hangs CPUBasics/append= (panic (Unit/Unit))
main= (Basics/append"a""b")
The text was updated successfully, but these errors were encountered:
Opening this issue based on Discord discussion.
I'd like to have a way to crash at runtime. For example, Elm programs have
Debug.todo
which is sometimes useful.I've tried to use the "cloning non-affine functions" method, but it doesn't work when you're using currying:
The text was updated successfully, but these errors were encountered: