【純粋関数型AltJS】PureScript

2020/03/27(金) 23:08:17.93ID:adWh10vX
Haskellの直系の子孫であり、JavaScriptを主なコンパイル対象とする純粋関数型AltJS PureScript について語るスレです。

PureScript公式サイト
https://www.purescript.org/

言語リファレンス
https://github.com/purescript/documentation/blob/master/language/README.md

その他有用なラーニングリソース
https://github.com/JordanMartinez/purescript-jordans-reference
https://github.com/justinwoo/purescript-resources/blob/master/docs/index.rst
https://discourse.purescript.org/t/recommended-tooling-for-purescript-applications-in-2019/948
2023/09/18(月) 10:41:43.01ID:UmWRU5gb
halogen難しいね
次の関数とかどんな関数か想像もつかない
_1って何ですか。普通のaとかと同じもの?

slot :: forall query action input output slots m label slot _1. Cons label (Slot query output slot) _1 slots => IsSymbol label => Ord slot => Proxy label -> slot -> Component query input output m -> input -> (output -> action) -> ComponentHTML action slots m
26デフォルトの名無しさん
垢版 |
2023/10/04(水) 20:54:14.40ID:raXXa6I6
>>25
Halogenは、ある程度PureScriptに慣れるまではシグネチャおまじないだと思ってあんまり気にしない方がいいかもね
27デフォルトの名無しさん
垢版 |
2023/10/05(木) 17:14:25.83ID:qkLTqCla
>>24

記事のは Effect.Class.Console の log を使ってるはず(Effect.Consoleのlog を liftEffect したもの)
レスを投稿する

5ちゃんねるの広告が気に入らない場合は、こちらをクリックしてください。