Produces this error output from gleam build on Gleam 1.6.2:
Compiling bit_array_test
/Users/richardviney/Code/bit_array_test/src/bit_array_test.gleam:8:39: syntax error before: ','
/Users/richardviney/Code/bit_array_test/build/dev/erlang/bit_array_test/_gleam_artefacts/bit_array_test.erl:4:2: function main/0 undefined
% 4| -export([main/0]).
% | ^
/Users/richardviney/Code/bit_array_test/src/bit_array_test.gleam:6:2: spec for undefined function main/0
% 6| <<<<0xAE>>:bits-size(5 |> identity)>>
% | ^
error: Shell command failure
There was a problem when running the shell command `escript`.
This Gleam code that uses a pipe in a
size
bit array segment:Produces this error output from
gleam build
on Gleam 1.6.2:The generated Erlang code is here: bit_array_test.erl.txt
I'm uncertain whether pipes in bit array segments are meant to work, but blocks and case expressions work so pipes probably should too.