Skip to content

matsubara0507/haskell-and-elm

Repository files navigation

haskell-and-elm

Example application using Haskell(servant) and Elm.

API functions in Elm is generated by mattjbray/servant-elm(Elm type is generated by krisajenkins/elm-export).

Moreover, Type that communicated by API is written using fumieval/extensible !!

Example application is referenced to this post.

Run

$ stack build --test
  .
  .
  .
haskell-and-elm-0.1.0.0: test (suite: generate)

Writing: elm-src/Generated/TodoAPI.elm
Success! Compiled 2 modules.
Successfully generated static/main.js

Completed 2 action(s).

$ stack exec -- server
Listening on port 8080