r/purescript • • Aug 17 '21

Anyone have a good, lightweight, FRP library?

7 Upvotes

Hi!

Just trying to link up my backend with a really simple web frontend here, I need to be able to respond to individual key presses in a html input element inside a monad that has State and Effect (or Affect).

I found purescript-hareactive in a previous thread, but I don't know if this is still maintained. Not a huge deal or anything, but I'm wondering if there's a better way to do this now?

If not, it looks like maybe something with coroutines will do the trick. I saw a forum post by Jordan Martinez on the topic, but people there suggested to use a dedicated frp library.

Any thoughts appreciated!


r/purescript • • Mar 03 '21

Need help in learning

7 Upvotes

I am going through PureScript by Example, and now in Chapter 8, I felt that the difficulty just jump into an order of magnitude compared to previous chapters. I can't help to feel that I'm having huge knowledge gap, from Chapter 1-7 vs Chapter 8.

More specifically, looking at ST and React section of the chapter, I just completely confused.


r/purescript • • Feb 09 '21

Routing with PureScript and Flame - I answered my own question on SO and would appreciate any feedback

Thumbnail
stackoverflow.com
7 Upvotes

r/purescript • • Oct 04 '20

Getting the value from Aff to Effect

7 Upvotes

Why there isn't a function so that i can run the Aff in Effect and get its value ? All i can find is launchAff but that returns Fiber a and if i run the Fiber it returns Unit in Effect , i would assume it returns the value but no.


r/purescript • • May 25 '20

Using PushState with Purescript / Halogen

Thumbnail
donnabot.dev
7 Upvotes

r/purescript • • Apr 27 '20

React Native with PureScript?

7 Upvotes

Is writing React Native apps with PureScript possible? Is it supported?


r/purescript • • Oct 15 '19

Apply Natural Transformations in everyday work

Thumbnail
medium.com
7 Upvotes

r/purescript • • Sep 15 '19

Leapfrogging types with Traversable

Thumbnail
medium.com
7 Upvotes

r/purescript • • Jul 31 '19

Typesafe Units of Measure in Purescript: purescript-typelevel-measures

Thumbnail pursuit.purescript.org
7 Upvotes

r/purescript • • Jul 25 '19

Announcing purescript-cartesian: a simple package for complex numbers

Thumbnail pursuit.purescript.org
7 Upvotes

r/purescript • • Jun 27 '19

If i know Haskell syntax then i know PureScript syntax too?

7 Upvotes

What are the main differences between PureScript and Haskell from the syntax aspect?


r/purescript • • Mar 02 '19

Generic Sums to Variant and back again

Thumbnail
qiita.com
7 Upvotes

r/purescript • • Dec 02 '18

AOJ day 2: Psc-Package

Thumbnail
qiita.com
7 Upvotes

r/purescript • • Nov 21 '18

Pux Status?

7 Upvotes

I've seen multiple people indicate that Pux is in maintenance mode and will no longer be maintained. Is this actually true? I've heard Hedwig mentioned as an alternative, but while the Pux repo has 40 contributors and over 300 commits, Hedwig has 2 contributors and 24 commits. Pux also has a dedicated domain with real documentation. It seems odd to me that the project would just be abandoned given the level of investment it seems to have received earlier on. Can someone clarify the status of Pux, and if it's not a good choice going forward, what is? I'm looking for something relatively simple with decent documentation and enough contributors that it has a decent chance of being actively maintained for the foreseeable future.


r/purescript • • Nov 08 '18

Beginner Post on PureScript: Reading a Twitter API

7 Upvotes

r/purescript • • Nov 03 '18

Nix-ify your Psc-Package dependencies

Thumbnail
qiita.com
7 Upvotes

r/purescript • • Aug 12 '18

Formless v0.2.0 released - Announcements

Thumbnail
purescript-users.ml
7 Upvotes

r/purescript • • Jun 26 '18

Is there a good Purescript tutorial aimed at someone with good experience in FP but little in front end work?

7 Upvotes

I’m interested in learning purescript and applying it to make a web app. I have a good familiarity with Haskell, but have almost zero experience in web development. Where should I look to to start learning Purescript?

I’m not necessarily looking to build a whole website in purescript (I’m also in the process of learning Django), but I’d love to be able to make use of my functional programming skills.


r/purescript • • Jun 03 '18

Well-typed parameterized SQLite parameters with PureScript

Thumbnail
qiita.com
7 Upvotes

r/purescript • • Jun 01 '18

Looking for a library to create pretty webpages without need to dive into HTML and CSS

7 Upvotes

Hello everyone!

I'm working on web application with Haskell as backend. I also want to have frontend and I'm thinking on implementing frontend in PureScript. Since I have almost zero experience in CSS and only basic HTML knowledge, I don't want to spend months on learning all that fun stuff to make pretty webpage design. I don't need anything fancy, just basic label elements, text entry elements, buttons and lists. But I also don't want it to be ugly. So it would be really great if some library, where I can specify UI elements in declarative way, exist! I just want to be able to specify color, size, content, maybe font and create lists (by fetching data from DB, would be great to customize columns of list rows as well). Don't need full customization of everything, some predefined in library template (or even set of templates) is okay.

Could you please suggest such PureScript library or something close to what I want?

Thanks in advance for your help, I really appreciate it!


r/purescript • • May 03 '18

How to write mobile apps using Purescript?

7 Upvotes

I'd like to write a mobile application using Purescript. How do I go about it? What library/framework do I use?


r/purescript • • Apr 29 '18

Record Updates in 0.12.0

Thumbnail stefan-fehrenbach.net
7 Upvotes

r/purescript • • Mar 14 '18

Some thoughts on typeclass-based codecs

Thumbnail code.slipthrough.net
7 Upvotes

r/purescript • • Mar 02 '18

getting started - is Purescript right for me?

7 Upvotes

My goal is to write some math games and apps to run in the browser, and eventually to run as an iOS or Android app. I'd like to know if Purescript is right for me.

Note: first goal is prototyping. Lots of research needed on the type of game/app I'm developing. So even if Purescript won't help me deploy an industrial-strength web page or app, it still may be useful for prototyping.

I love Haskell. I've worked in C++ and Python also, but in the future I never want to be without functional programming and the Haskell type system. So naturally when it comes time to develop a web page application, I thought of Purescript.

So first question is: is Purescript a good fit for my application? Here's the kind of thing I need to do:

  • have user accounts - people would log in

  • the history of a user's past games and interactions would probably be stored in a database of some sort

  • display equations, diagrams, shapes etc. - this will involve choosing fonts, characters, arranging text, and drawing geometrical and curvilinear shapes - it will also involve some simple animation

  • responding to clicks, taps, and drags, anywhere on the screen potentially (including on the areas displaying equations)

  • there will be some basic GUI elements: entry fields for words and numbers, check boxes, drop-down lists, etc.


r/purescript • • Feb 08 '18

AMQP client lib in Purescript

Thumbnail pursuit.purescript.org
7 Upvotes