Skip to content

A Hastily crafted TEA-inspired web framework using Asterius WebAssembly compiler

Notifications You must be signed in to change notification settings

emiflake/hastea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hastea web framework

Fun with Asterius

The Elm Architecture is a wonderful means for creating web apps without worrying about runtime errors, Hastea is a TEA-inspered web framework using those principles ontop of Haskell compilation through Asterius

TodoMVC example (under `src/TodoMVC`):

https://i.imgur.com/EygKvbo.gif

Building

Using Docker

You can find an asterius docker image on docker hub using this, you can run the following command, which will compile the Main.hs to dist

ahc-link --input-hs Main.hs --bundle --browser --output-dir=$(DIST_DIR)

Alternatively you can also try make docker-build.

Other methods have had no success as of yet.

TODOs

Development

  • Benchmark
  • Figure out build system
    • Create library instead of executable
    • Import library into a Main.hs, rather than just inline
    • Native nix build (blocked by asterius)
    • cabal-style build

About

A Hastily crafted TEA-inspired web framework using Asterius WebAssembly compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published