PureScript
https://upload.wikimedia.org/wikipedia/commons/6/64/PureScript_Logo.png
Haskell likeなAltJS
HaskellよりもHaskellな言語
後発なだけあってHaskellの失敗点が改善されている
versionはまだv0.13.6
拡張子は.purs
スクボのコード記法が対応してないのでページによっては.hsとして書いてるmrsekut.icon
開発者はPhil Freeman
PureScript開発の環境構築
PureScriptとHaskellの差異
PureScriptの型
PureScriptの型クラス
PureScript 遅延評価
PureScriptのFFI
PureScriptのModules
Pursuit
PureScriptで標準入力
github
website
playgound
ツール
purs
spago
awsome
pursに関するlibraryなどのまとめ
https://project-awesome.org/passy/awesome-purescript
勉強に良さそう
Foreword - PureScript by Example
更新されている
Preface - PureScript: Jordan's Reference
PureScript Resources — PureScript-Resources documentation
実例によるPureScript
原文
若干古い
https://www.f-sp.com/entry/2019/09/22/161746
環境構築などいろいろ
adkelley/javascript-to-purescript
関数型JSをPSに書き換えるシリーズ
元々Professor Frisby Introduces Composable Functional JavaScriptというJSでFPをやる無料講義みたいなのがあって、それをPSに書き換えてるらしい
Module
https://github.com/purescript/documentation/blob/master/language/Modules.md
realworldのやつ、full exportしてる #??
PureScriptのRouting
PureScriptでJSON
purescript-uri
https://pursuit.purescript.org/packages/purescript-uri/8.0.1
URIを型で表す
ここに出てきたが、halogen real world内では使われてなかった
Prim系のmoduleの実装箇所
https://github.com/purescript/purescript/blob/45756eac952a5da67848340bb7529ef5d2b362cb/lib/purescript-cst/src/Language/PureScript/Constants/Prim.hs
compilerに元々入っているやつなのでhsで実装されている
servant-purescript
Warn型クラス
Error
CycleInDeclaration
zephyr
https://github.com/coot/zephyr
pursでTree Shakingする
purescript-native
PSでネイティブコードを吐く
https://github.com/andyarvanitis/purescript-native
PureScriptを使っている企業
圏論
https://github.com/sharkdp/purescript-ctprelude
#古い情報
v0.12からPureScriptのEffモナドからEffectモナドへ変わった
https://qiita.com/hansel_no_kioku/items/c3a765f3a4da9f388eff
パッケージマネージャ
今のデファクトはspago
最初がBower、その次がpsc-package
ビルドツール
今のデファクトはspago
昔はpulpだった
https://ende.netlify.app/post/f1e048fc9a8ca51eddb2/
https://oreshinya.hatenablog.com/entry/2017/12/01/235305
#プログラミング言語