Skip to content

Instantly share code, notes, and snippets.

@lepoetemaudit
Created July 19, 2017 13:33
Show Gist options
  • Save lepoetemaudit/43f41d8c8b753294b05694826ef738c3 to your computer and use it in GitHub Desktop.
Save lepoetemaudit/43f41d8c8b753294b05694826ef738c3 to your computer and use it in GitHub Desktop.
Stack trace for lambdas in match statement fail
[{alpaca_codegen,gen_expr,
[{env,[{<<"fails">>,1},{<<"succeeds">>,1}],alpaca_bad,0,0},
{alpaca_fun,6,undefined,1,undefined,
[{alpaca_fun_version,0,
[{'Symbol',
#{'__struct__' => record,
line => 6,
name => <<"svar_1">>,
original => 'None'}}],
[],
{alpaca_apply,undefined,6,
{bif,'*',6,erlang,'*'},
[{'Symbol',
#{'__struct__' => record,
line => 6,
name => <<"svar_1">>,
original => {'Some',<<"y">>}}},
{'Symbol',
#{'__struct__' => record,
line => 6,
name => <<"svar_1">>,
original => {'Some',<<"y">>}}}]}}]}],
[{file,
"/home/chrx/work/alpaca/_build/default/lib/alpaca/src/alpaca_codegen.erl"},
{line,302}]},
{alpaca_codegen,gen_expr,2,
[{file,
"/home/chrx/work/alpaca/_build/default/lib/alpaca/src/alpaca_codegen.erl"},
{line,577}]},
{alpaca_codegen,'-gen_expr/2-fun-8-',2,
[{file,
"/home/chrx/work/alpaca/_build/default/lib/alpaca/src/alpaca_codegen.erl"},
{line,601}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
{alpaca_codegen,gen_expr,2,
[{file,
"/home/chrx/work/alpaca/_build/default/lib/alpaca/src/alpaca_codegen.erl"},
{line,600}]},
{alpaca_codegen,gen_fun,2,
[{file,
"/home/chrx/work/alpaca/_build/default/lib/alpaca/src/alpaca_codegen.erl"},
{line,231}]},
{alpaca_codegen,gen_funs,3,
[{file,
"/home/chrx/work/alpaca/_build/default/lib/alpaca/src/alpaca_codegen.erl"},
{line,208}]},
{alpaca_codegen,gen,2,
[{file,
"/home/chrx/work/alpaca/_build/default/lib/alpaca/src/alpaca_codegen.erl"},
{line,83}]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment