Skip to content

Commit

Permalink
Remove warning and use spago (in makefile)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianroe authored and nwolverson committed Oct 12, 2021
1 parent 164aa3c commit 27299ea
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ ebin/
erl_crash.dump
output/
.psc-package/
.spago/
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: [ process.env.PRETTIER_PURESCRIPT ],
}
19 changes: 11 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
.PHONY: ps erl all test
.PHONY: ps erl all test clean distclean

all: ps erl
.DEFAULT_GOAL := ps

all: test

ps:
psc-package sources | xargs purs compile 'test/**/*.purs' 'src/**/*.purs'
@spago build

erl: ps
mkdir -p ebin
erlc -o ebin/ output/*/*.erl
clean:
rm -rf output

test: erl
erl -pa ebin -noshell -eval '(test_main@ps:main())()' -eval 'init:stop()'
distclean: clean
rm -rf .spago
test:
@spago -x test.dhall test
1 change: 0 additions & 1 deletion spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ You can edit this file as you like.
, "foreign"
, "integers"
, "prelude"
, "unsafe-coerce"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs" ]
Expand Down
5 changes: 2 additions & 3 deletions src/Erl/Process.purs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ module Erl.Process

import Prelude
import Data.Either (Either)
import Data.Time.Duration (Milliseconds(..))
import Data.Time.Duration (Milliseconds)
import Effect (Effect)
import Effect.Class (class MonadEffect, liftEffect)
import Erl.Process.Raw (ExitReason(..), ExitMsg(..)) as RawExport
import Erl.Process.Raw (ExitReason, getPid)
import Erl.Process.Raw (ExitReason)
import Erl.Process.Raw as Raw
import Foreign (Foreign)
import Unsafe.Coerce (unsafeCoerce)

newtype Process (a :: Type)
= Process Raw.Pid
Expand Down

0 comments on commit 27299ea

Please sign in to comment.