Giter Site home page Giter Site logo

lukewilliamboswell / roc-wasm4 Goto Github PK

View Code? Open in Web Editor NEW
40.0 5.0 2.0 812 KB

Build wasm4 games using Roc

Home Page: https://lukewilliamboswell.github.io/roc-wasm4/

License: Universal Permissive License v1.0

Zig 80.75% Shell 0.46% Roc 18.78%
roc-lang wasm4

roc-wasm4's People

Contributors

bhansconnect avatar isaacvando avatar lukewilliamboswell avatar wontem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

isaacvando wontem

roc-wasm4's Issues

Unused defs cause build to fail

This program runs successfully, but if I comment out either the unused import or the unused def, the build fails.

app "drum"
    packages {
        w4: "platform/main.roc",
    }
    imports [
        w4.Task.{ Task },
        # w4.W4,
    ]
    provides [main, Model] to w4

Program : {
    init : Task Model [],
    update : Model -> Task Model [],
}

Model : {}

main : Program
main = { init, update }

init : Task Model []
init =
    Task.ok {}

update : Model -> Task Model []
update = \model ->
    Task.ok model

# unused = "foo"
$ zig build -Dapp=foo.roc run

── UNUSED DEFINITION ───────────────────────────────────────────────── foo.roc ─

unused is not used anywhere in your code.

29│  unused = "foo"
     ^^^^^^

If you didn't intend on using unused then remove it so future readers
of your code don't wonder why it is there.

────────────────────────────────────────────────────────────────────────────────

0 errors and 1 warning found in 13 ms.
run roc: error: the following command exited with error code 1:
roc check /Users/isaacvando/Desktop/projects/roc-drum-machine/foo.roc 
Build Summary: 0/5 steps succeeded; 1 failed (disable with --summary none)
run transitive failure
└─ run w4 transitive failure
   └─ zig build-lib cart Debug wasm32-freestanding transitive failure
      └─ run roc transitive failure
         └─ run roc failure
error: the following build command failed with exit code 1:
/Users/isaacvando/Desktop/projects/roc-drum-machine/zig-cache/o/c173747dba52ae0f3be002aa3cb112b9/build /Users/isaacvando/Desktop/projects/zig/build/zig /Users/isaacvando/Desktop/projects/roc-drum-machine /Users/isaacvando/Desktop/projects/roc-drum-machine/zig-cache /Users/isaacvando/.cache/zig -Dapp=foo.roc run

I am using the most recent version of the platform, roc from Jan 12, and apple silicon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.