Our great sponsors
-
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.
-
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
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
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
-
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 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.
-
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.