purerl - Integrating PureScript into Elixir projects

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • purerl

    Erlang backend for the PureScript compiler

  • purerl is a compiler for turning PureScript code into Erlang code, so that you're able to write BEAM (the Erlang virtual machine) applications using it.

  • package-sets

    PureScript packages for Spago and Psc-Package

  • diff --git a/packages.dhall b/packages.dhall index e13009d..28bcb0c 100644 --- a/packages.dhall +++ b/packages.dhall @@ -99,7 +99,6 @@ in upstream ------------------------------- -} let upstream = - https://github.com/purescript/package-sets/releases/download/psc-0.15.3-20220712/packages.dhall - sha256:ffc496e19c93f211b990f52e63e8c16f31273d4369dbae37c7cf6ea852d4442f + https://github.com/purerl/package-sets/releases/download/erl-0.15.3-20220629/packages.dhall in upstream

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • package-sets

    A curated list of PureScript packages for the Erlang backend (by purerl)

  • diff --git a/packages.dhall b/packages.dhall index e13009d..28bcb0c 100644 --- a/packages.dhall +++ b/packages.dhall @@ -99,7 +99,6 @@ in upstream ------------------------------- -} let upstream = - https://github.com/purescript/package-sets/releases/download/psc-0.15.3-20220712/packages.dhall - sha256:ffc496e19c93f211b990f52e63e8c16f31273d4369dbae37c7cf6ea852d4442f + https://github.com/purerl/package-sets/releases/download/erl-0.15.3-20220629/packages.dhall in upstream

  • my_dep

  • diff --git a/mix.exs b/mix.exs index 6ba9745..657162c 100644 --- a/mix.exs +++ b/mix.exs @@ -7,7 +7,9 @@ defmodule PurerlUpAndRunning.MixProject do version: "0.1.0", elixir: "~> 1.14", start_permanent: Mix.env() == :prod, - deps: deps() + deps: deps(), + compilers: [:purerl] ++ Mix.compilers(), + erlc_paths: ["output"] ] end @@ -21,6 +23,7 @@ defmodule PurerlUpAndRunning.MixProject do # Run "mix help deps" to learn about dependencies. defp deps do [ + {:purerlex, "~> 0.4.2"} # {:dep_from_hexpm, "~> 0.3.0"}, # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} ]

  • purescript

    A strongly-typed language that compiles to JavaScript

  • PureScript is a Haskell-like language aimed at providing an alternative to TypeScript for statically typed programming in the JavaScript space. I highly recommend taking a look at PureScript for your compile-to-JavaScript needs outside of the use case we'll be talking about in this post.

  • asdf

    Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more

  • When our project has been created we want to make sure that the versions we have of everything are clearly described. For this purpose we'll use asdf, a general version management tool we can use for all the tools we'll need in this project.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts