Created
December 3, 2023 17:15
-
-
Save axelerator/31e572261ef350eeb8205573a2507bc1 to your computer and use it in GitHub Desktop.
Error in alias analysis: error in module ModName("UserApp")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# thread 'main' panicked at 'Error in alias analysis: error in module ModName("UserApp"), function definition FuncName("\x13\x00\x00\x00\r\x00\x00\x00S\xd4\xce\x7ff\x8f\xfb5"), definition of value binding ValueId(5): could not find func in module ModName("UserApp") with name FuncName("\x13\x00\x00\x00\xb7\x00\x00\x00\')\xc9\xb5<\xabU~")', crates/compiler/gen_llvm/src/llvm/build.rs:5644:19 | |
# note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace | |
# ------------------------------------------------------------------------------------------------------------------- | |
# ~/dev/roc/aoc23/03 (main*) » roc version | |
#roc nightly pre-release, built from commit a56d7adc17 on Fri Dec 1 09:19:25 UTC 2023 | |
# (base) ------------------------------------------------------------------------------------------------------------------- | |
# ~/dev/roc/aoc23/03 (main*) » uname -a | |
# Darwin Axels-Air 22.6.0 Darwin Kernel Version 22.6.0: Wed Oct 4 21:26:43 PDT 2023; root:xnu-8796.141.3.701.17~4/RELEASE_ARM64_T8112 arm64 | |
app "example" | |
packages { | |
cli: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br", | |
parser: "https://github.com/lukewilliamboswell/roc-parser/releases/download/0.2.0/dJQSsSmorujhiPNIvJKlQoI92RFIG_JQwUfIxZsCSwE.tar.br", | |
} | |
imports [ | |
cli.Stdout, | |
Bool.{true, false}, | |
parser.Core.{ Parser, skip, keep, const, oneOf, map, sepBy, many, buildPrimitiveParser, apply}, | |
parser.String.{ parseStr, digits, string }, | |
] | |
provides [main] to cli | |
main = | |
Stdout.line "The answer are: " | |
Parse a : Parser (List U8) a | |
RowItem : [Dot, Number Nat, Symbol] | |
parseRow : Parse (List RowItem) | |
parseRow = | |
map | |
(many (oneOf [parseDot, parseNumber])) | |
List.join | |
parseDot : Parse (List RowItem) | |
parseDot = | |
const [Dot] | |
|> skip (string ".") | |
spaceAwareNumber : Nat -> List RowItem | |
spaceAwareNumber = \n -> | |
[] | |
parseNumber : Parse (List RowItem) | |
parseNumber = | |
const spaceAwareNumber | |
|> keep digits | |
expect | |
actual = parseStr parseDot "." | |
actual == Ok [Dot] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment