unisonweb / elm-browser

A Unison Github repo explorer in Elm
MIT License
34 stars 4 forks source link
unison unison-language

Archived

See the Codebase UI for a similar and active project: https://github.com/unisonweb/codebase-ui

Unison Codebase Explorer

The Unison Codebase Explorer is an Elm application and companion Haskell server for exploring your Unison codebase. It is very alpha-quality software, but you can still use it in anger. Pull requests welcome and appreciated :)

Building

To build, you need elm 0.19+ and either cabal-install 2.4+ or stack.

That's it! Now you have a unison-browser executable that you can run in any directory with a .unison folder.

Note: Development Workflow

Client

For a slightly optimized workflow, you can have live reloading with elm-live

The --debug for elm-live/elm-make is possible with tiny Unison codebases, but it becomes untenable by the time you have around 1000 definitions.

Server

Use ghcid for live reloading.

// One or the other
ghcid -c "cabal v2-repl -O0" --restart unison-browser.cabal
ghcid -c "stack ghci" --restart unison-browser.cabal

Remember that ucm saves your .unison codebase in your home directory by default, so you'll probably want to start the server in there.

Code guide

Module guide: