Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Add Purescript support #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions languages/purescript.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name = "purescript"
entrypoint = "src/Main.purs"
extensions = [
"purs"
]
packages=["netbase"]
setup = [
"yarn global add [email protected] [email protected]"
]

versionCommand = [
"purs",
"--version"
]

runtimeSetup = [
"spago -q init"
]

[compile]
command = [
"spago",
"-q",
"build",
"-p"
]

[run]
command = [
"spago",
"-q",
"run"
]

[tests]
[tests.hello]
code = "module Main where\nimport Prelude (Unit)\nimport Effect (Effect)\nimport Effect.Class.Console (log)\nmain :: Effect Unit\nmain = log \"Hello, World\"\n"
output = "Hello, World\n"