r/purescript • • Aug 13 '18

Type Safe, Functional GraphQL with Purescript - Part 1

Thumbnail
blog.swiftnav.com
17 Upvotes

r/purescript • • Nov 16 '17

I made a library for generating inter-operable TypeScript types from PureScript

17 Upvotes

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 • • Jun 05 '17

Package set for 0.11.5 is now ready

Thumbnail
github.com
17 Upvotes

r/purescript • • Mar 11 '17

insect - interactive scientific calculator with support for physical units, written with purescript-parsing

Thumbnail
shark.fish
17 Upvotes

r/purescript • • Mar 09 '17

Building a Graphical IDE in Elm/Purescript (...) - Claudia Doppioslash (Lambda Days 2017)

Thumbnail
youtube.com
17 Upvotes

r/purescript • • Mar 07 '17

I'm writing an introduction to the mathematics behind the numeric type class hierarchy in Prelude

17 Upvotes

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 • • Dec 21 '16

Spanish translation of the PureScript book

Thumbnail
leanpub.com
17 Upvotes

r/purescript • • Nov 13 '16

A note of thanks for the try-purescript editor!

17 Upvotes

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 • • Jan 10 '16

PureScript Conf 2016: A free 1-day conference devoted to PureScript

Thumbnail
github.com
17 Upvotes

r/purescript • • Sep 21 '14

"PureScript (Maybe This Time We Get JavaScript Right)" by Bodil Stokke

Thumbnail
youtube.com
17 Upvotes

r/purescript • • Oct 31 '24

purescript.io domain

16 Upvotes

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 • • Feb 25 '22

PureScript Inaugural Survey: Help Needed on 2022-02-28

Thumbnail
discourse.purescript.org
16 Upvotes

r/purescript • • Jun 09 '21

What is your opinion evaluating purescript against Elm and Idris?

16 Upvotes

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 • • Mar 05 '21

Porting monad-challenges to PureScript

16 Upvotes

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 • • Dec 30 '19

Anybody willing to mentor in purescript + halogen?

16 Upvotes

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 • • Mar 16 '19

Building Purescript Projects with Nix

Thumbnail
qiita.com
16 Upvotes

r/purescript • • Oct 24 '18

Using PureScript easily with Nix (non-NixOS)

Thumbnail
qiita.com
16 Upvotes

r/purescript • • Aug 28 '18

Job opening at Awake Security

16 Upvotes

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 • • Jan 22 '18

Options for making standalone PureScript Desktop Apps?

16 Upvotes

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 • • Dec 20 '17

purescript-web3 presentation by Martin Allen, Senior Blockchain Developer at FOAM

Thumbnail
youtube.com
16 Upvotes

r/purescript • • Nov 23 '17

How far are we at autogenerating lenses?

16 Upvotes

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 • • Sep 11 '17

Benchmarks: PureScript (Pux, Halogen, Thermite) & GHCJS (Miso, Reflex)

Thumbnail
medium.com
16 Upvotes

r/purescript • • Jul 12 '17

New release of psc-package

Thumbnail
github.com
16 Upvotes

r/purescript • • May 13 '17

What pitfalls/downsides should one be aware of before migrating to Purescript, in general, and Halogen, in particular?

16 Upvotes

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 • • Mar 28 '17

Make the Leap from JavaScript to PureScript

Thumbnail
medium.com
16 Upvotes