r/purescript • u/TonyD256 • Aug 13 '18
r/purescript • u/jusrin • Nov 16 '17
I made a library for generating inter-operable TypeScript types from PureScript
Demo walkthrough blog post: https://qiita.com/kimagure/items/4847685d02d4b15a556c
Repo: https://github.com/justinwoo/purescript-ohyes
Demo: https://github.com/justinwoo/ohyes-demo
tl;dr interop library that works with regular types, deriving newtypes, records, and variants encoded as union types with a string literal discriminant "type" field with a "value" field.
It might not be exactly what you want, but hopefully gives you some ideas on how to make your own library for this kind of thing. I also have a related library that does Elm port-safe type constraining and type codegen: https://github.com/justinwoo/purescript-kancho
r/purescript • u/sharkdp • Mar 11 '17
insect - interactive scientific calculator with support for physical units, written with purescript-parsing
r/purescript • u/[deleted] • Mar 09 '17
Building a Graphical IDE in Elm/Purescript (...) - Claudia Doppioslash (Lambda Days 2017)
r/purescript • u/hdgarrood • Mar 07 '17
I'm writing an introduction to the mathematics behind the numeric type class hierarchy in Prelude
Hi /r/purescript! I've already mentioned this once or twice on twitter, and I thought I'd post it here too just in case.
Over the last month or so I've been working on a written guide to the PureScript numeric type class hierarchy - that is, Semiring, Ring, and all the subclasses up to Field - aimed at people who haven't necessarily studied mathematics beyond a high school level. It's not quite at the stage where I'm comfortable sharing links publicly, but I am looking for (and have already found a few) people interested in reading early versions.
If you want to see it, please send me an email: harry at garrood dot me. I'll be very grateful for any feedback.
r/purescript • u/jacereda • Dec 21 '16
Spanish translation of the PureScript book
r/purescript • u/__buckie__ • Nov 13 '16
A note of thanks for the try-purescript editor!
My company has just open-sourced our smart contract language and I used the try-purescript editor as a base to start from: http://kadena.io/try-pact/
I just wanted to say thank you to the community. Using it as a base made the task of building an editor much easier.
If you want any of the features I added pushed back to try-purescript I'd be happy to open a PR, just let me know which you think could be nice to have. The biggest difference is that it is entirely client-side (we used GHCJS to compile the language and export eval).
With much open source love,
Will
r/purescript • u/buffyoda • Jan 10 '16
PureScript Conf 2016: A free 1-day conference devoted to PureScript
r/purescript • u/paf31 • Sep 21 '14
"PureScript (Maybe This Time We Get JavaScript Right)" by Bodil Stokke
r/purescript • u/noelmarkham • Oct 31 '24
purescript.io domain
I own the purescript.io domain. I've had it for a few years and have never known what to do with it. It's up for renewal and I'm going to let it lapse. If someone wants it and has a productive use for it, DM me and I'll pass the ownership on.
r/purescript • u/saylu • Feb 25 '22
PureScript Inaugural Survey: Help Needed on 2022-02-28
r/purescript • u/nudpiedo • Jun 09 '21
What is your opinion evaluating purescript against Elm and Idris?
Hi all,
In the last years I learnt Elm and Idris and now I am evaluating Purescript for the somewhat complex long project of creating a minimalistic programming language with its respective IDE and compiler. I would like to know your general opinions in how does compare PS with Elm and Idris for complex projects, specially whether it is worth for the mid long run (for example a small SPA might be done faster and easier with Elm).
In one hand I felt Elm does an awesome job at the time of reducing the boilerplate and go to the point, however Evan’s focus is not always to keep a consistent programming language and I am afraid I would lack some abstractions at some point.
Regarding Idris, it is totally the opposite direction from Elm, the compiler is immature and Idris 2 is just not ready. I like from dependent types that we can make a type dependent on a single attribute such as Matrixes with its dimensions and let the compiler verify that at compile time, however all that becomes messy when trying something beyond trivial examples. I believe that by using higher order types with purescript that’s possible as well, but I couldn’t find yet a working example (perhaps I should just try).
Last but not least, a big missing in all the ML family is somewhat logic programming (or prolog dialect), so being not many kanrens for any of those I would believe all three are even in this aspect.
r/purescript • u/s_p_lee • Mar 05 '21
Porting monad-challenges to PureScript
While reading PureScript by Example, I kept thinking of how I was leveraging my prior (limited) understanding of Haskell. I then saw this recent post on difficulties understanding Chapter 8, which introduces monads, and it reminded me of how I got a lot out of doing the Monad Challenges in Haskell.
I'm new to contributing to open source. Can someone weigh in on the etiquette on forking the monad-challenges repo to port it to PureScript?
The text says it's licensed under Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0), and the only code is MCPrelude.hs, and the LICENSE file looks like it has a standard BSD 3 clause license, so it seems like a fork would be OK.
Do people usually contact the authors to get their blessings too?
Edit: Live and and under-construction at https://blog.curlyfri.es/monad-challenges-purescript/, with drafts of Sets 1 - 5 ready for beta reading.
r/purescript • u/mbuffett1 • Dec 30 '19
Anybody willing to mentor in purescript + halogen?
Just starting to learn purescript and halogen, trying to create a simple SPA, and it's been tough. Learning resources seem scant, so as a beginner functional programmer I've been struggling. I've gotten somewhere but I think I would benefit from some mentoring.
Not sure what this kind of thing would usually cost, but willing to pay.
Background that may be relevant: I work mostly in React + Typescript in my day job, and know enough Haskell to be dangerous.
Sorry if this is the wrong place to post this, I've tried looking on ex. Codementor, and it seems there's just not any Purescript mentors, so I figured I'd give this a shot
r/purescript • u/jusrin • Oct 24 '18
Using PureScript easily with Nix (non-NixOS)
r/purescript • u/natefaubion • Aug 28 '18
Job opening at Awake Security
Awake Security (hey, I work there) is hiring a UI developer. Apply now!
React/Redux app
Mixed codebase
All new code written in PureScript, old JS migrated as necessary
30k LOC of PS so far and growing.
r/purescript • u/boscop • Jan 22 '18
Options for making standalone PureScript Desktop Apps?
What are the current options for making standalone PureScript Desktop Apps?
Other than the proverbial "Elephant" in the room?
I also want to offer another option: Using Rust to write the backend of the app and PureScript for the frontend!
(In case you don't know, Rust has a very strong static type system and is easier to learn/use than C/C++ if your goal is to write bug-free code.)
You can use my web-view Rust library which will result in a much leaner Desktop app than if you were using Electron.
Here is an example Todo app that uses PureScript/Halogen for the frontend.
Here is the PureScript source code for the todo example.
The necessary Rust code is very small and can be reused as a starting point for other apps.
The lib provides direct two-way communication between backend and frontend (without requiring embedding a web server, although you can do that, too).
If you have any questions about it, please ask me :)
r/purescript • u/paf31 • Dec 20 '17
purescript-web3 presentation by Martin Allen, Senior Blockchain Developer at FOAM
r/purescript • u/alpha_zero • Nov 23 '17
How far are we at autogenerating lenses?
I understand that lenses are controversial in the haskell community, but to me personally they provide a lot of functionality that just isn't there. For purescript, this is much less of an issue, but the other thing that lenses provide are much more relevant -- uniform, meaningful, typed and first-class access and update syntax+semantics (despite the propensity for operator abuse).
Where are we at autogenerating lenses in purescript? makeLenses/makePrisms is really nice in haskell and it would be great to have that functionality available, especially because writing lenses/prisms/isos etc is a mechanical and painful exercise.
r/purescript • u/saylu • Sep 11 '17
Benchmarks: PureScript (Pux, Halogen, Thermite) & GHCJS (Miso, Reflex)
r/purescript • u/saurabhnanda • May 13 '17
What pitfalls/downsides should one be aware of before migrating to Purescript, in general, and Halogen, in particular?
For example:
Performance issues
JS-interop issues
Complexity issues
Known bugs
Can people with knowledge of HTML/CSS make minor modifications to the UI code?
Anything else?
For some context, we've written a ton of code in Angular v1, and recently picked-up Angular2+TypeScript. The server-side/backend team is already using Haskell.
r/purescript • u/bayareasearcher • Mar 28 '17