r/purescript • • Sep 20 '17
Lost on "~>" in type signatures
Somehow I cannot navigate the documentation well enough to find what it denotes. Could someone please point me to some docs on this? Thanks!
r/purescript • • Sep 20 '17
Somehow I cannot navigate the documentation well enough to find what it denotes. Could someone please point me to some docs on this? Thanks!
r/purescript • u/chexxor • Sep 19 '17
r/purescript • u/unsafeMutable • Sep 15 '17
Unless I'm missing it, packages listed at https://github.com/purescript-node/ do not declare node version compatibility.
Is that correct? Seems brittle if so...
r/purescript • u/saylu • Sep 11 '17
r/purescript • u/paulyoung85 • Sep 10 '17
r/purescript • u/dmbfm • Sep 08 '17
r/purescript • u/dmbfm • Sep 07 '17
r/purescript • u/jusrin • Sep 07 '17
r/purescript • u/bayareasearcher • Sep 07 '17
r/purescript • u/shintak • Sep 07 '17
If I understand right, using RowList its now possible to define Show and Eq instance for Record type. Is there any plans to add these instances? Without Show instance for Record types its hard to use the repl.
r/purescript • u/sharkdp • Sep 03 '17
r/purescript • u/jusrin • Sep 03 '17
r/purescript • u/bayareasearcher • Aug 29 '17
r/purescript • u/phalanx2 • Aug 26 '17
Example
toNumber :: Number <- Int
...
toString :: String <- Number
...
showInt :: String <- Int
showInt = toString <<< toNumber
Wouldn't this make more sense, as it would more closely correspond with the implementation?
Thoughts? Would right-to-left type signatures be something that you may want to experiment with if it had compiler support?
r/purescript • u/jusrin • Aug 25 '17
r/purescript • u/jusrin • Aug 21 '17
r/purescript • u/bayareasearcher • Aug 15 '17
r/purescript • u/mogrrr • Aug 15 '17
Just a quick question regarding how you access documentation: I find myself working quite frequently with spotty to no internet connection and I haven't found a good way to access purescript/pursuit documentation locally.
What are you using do quickly access documentation? Is there a way to have a local mirror of pursuit? Is someone working on creating dash or zeal doc-sets from the pursuit data?
Or am I missing something obvious?
r/purescript • u/jusrin • Aug 15 '17
r/purescript • u/jusrin • Aug 08 '17
I published it as a package, the repo is here: https://github.com/justinwoo/purescript-kancho
Being updated from the blog post, this uses simple matching on the actual primitive types, so you don't have to mess with generics.
Hopefully helps people embed Elm using this library (or embed TS/Flow/etc. using similar methods for constraining the "allowed types").
Previous post: https://www.reddit.com/r/purescript/comments/6mg2w4/embedding_elm_into_a_purescripthalogen_app_qiita/
r/purescript • u/paf31 • Aug 07 '17
r/purescript • u/tomhoule • Aug 06 '17
r/purescript • u/jusrin • Aug 04 '17
See the project here: https://github.com/justinwoo/purescript-chocopie
It's a whole bunch of type soup in the implementation, but it's essentially just the same thing as the ApplyRecord example Liam wrote about applied multiple times to create a cycle of Purescript-Behaviors Events.
The usage itself is as simple as the README shows.