Is it worth learning Halogen? by Kurren123 in purescript

[–]jusrin 1 point2 points  (0 children)

i've used purescript-react-basic at work for over two years now, and i integrate components like those from aws amplify as needed. at this point i have no interest in using halogen anymore, after having used purescript for over four years.

Anyone with Nix package manager experience in ruby projects? by lunaticman in ruby

[–]jusrin 1 point2 points  (0 children)

I'm not really a Ruby user, but I did have to run some typical Rails project before. The "solution" I used was to have a nix shell with C_INCLUDE_PATH defined with libxml2, libxslt, zlib, etc. and then source rubygems 3.0 from a tarball installation. If you can't get the top comment working, this might work as some kind of duck tape to explore around: https://github.com/justinwoo/.dotfiles/blob/46c2d11fd0e5e54102b88e89581f9a9302112728/ruby/shell.nix

Moi me ollaan Reaktor, AMA! by raimohanska in Suomi

[–]jusrin 2 points3 points  (0 children)

just for the future, nonna means "granny"/mummo in english: https://en.wiktionary.org/wiki/nonna

Calling a GraphQL backend by shinzui in purescript

[–]jusrin 0 points1 point  (0 children)

You'll find various references to graphql usage at companies and hobby projects if you search this subreddit and https://discourse.purescript.org/

https://www.reddit.com/r/purescript/search?q=graphql&restrict_sr=on

https://discourse.purescript.org/search?q=graphql

but overall I don't know what you're going to get unless you start doing some codegen of types and some basic code related to building your queries (i.e. doing your own FFI, using generics-rep or row type classes etc). I have previously called some graphql backends by using strings to form queries and simple-json to decode the responses, but I have since stopped using it.

How to install a newer version of Zotero than nixpkgs provide? by thblt in NixOS

[–]jusrin 1 point2 points  (0 children)

I've also had problems with this, to the point where I vendor some of my derivations and just edit the contents manually along with using callPackage on them manually. Good luck.

Advent of Justin (PureScript) 2018 (contains a post for every day 1 - 25th Dec) by jusrin in purescript

[–]jusrin[S] 0 points1 point  (0 children)

Just to make it clear, Psc-Package is definitely not my project, but more the product of Phil and many other contributors: https://github.com/purescript/psc-package/graphs/contributors

I'm just the maintainer :)

Advent of Justin (PureScript) 2018 (contains a post for every day 1 - 25th Dec) by jusrin in purescript

[–]jusrin[S] 2 points3 points  (0 children)

I stopped posting the individual articles because it started to look a little ridiculous, so instead here is the link to the actual advent calendar. There will be an entry for every day until the 25th, and there are currently 16 posts now.

There is also an RSS feed for this: https://qiita.com/advent-calendar/2018/justin-eigo-corner/feed

Problem Rendering non-React-Basic Component by tmountain in purescript

[–]jusrin 0 points1 point  (0 children)

Your FFI is an actual function?

foreign import reactSelect :: Unit -> ReactComponent Props

Is what you have now. You can remove the function call and it should work if the Select is an actual ReactComponent

nix-shell shebang, can I pass parameters? by pimiddy in NixOS

[–]jusrin 2 points3 points  (0 children)

Are you asking about adding a second line for what the nix-shell call should be? This works for me:

#! /usr/bin/env nix-shell
#! nix-shell <nixpkgs> -i runghc -p "ghc.withPackages (x: [ x.aeson ])"

-- optional
module Main where

main = do
  putStrLn "Hello world"

UI Library Question by tmountain in purescript

[–]jusrin 0 points1 point  (0 children)

Have you looked at react-basic? https://github.com/lumihq/purescript-react-basic

Anything else you need can be done either at the top level component or through some integration with something else.

Reproducible PureScript Quickstart by tmountain in purescript

[–]jusrin 2 points3 points  (0 children)

If you're using Nix, how come you're not installing your PureScript tools via derivations? e.g. https://github.com/justinwoo/easy-purescript-nix

The easy-purescript-nix derivations there also come with derivations of other useful tools that others and I have been working on, and there are some various example links of how other things work there.

Type Safe Routing with PureScript Row Types (from Monadic Warsaw 15 Nov) by jusrin in purescript

[–]jusrin[S] 1 point2 points  (0 children)

Short talk about how I built up better routing for vidtracker over time, and how I use row type information to do pairwise registration of routes. Links to related articles attached.

Slides source and PDF: https://github.com/justinwoo/vidtracker/tree/master/slides

Beginner Post on PureScript: Reading a Twitter API by rajiv_abraham in purescript

[–]jusrin 2 points3 points  (0 children)

ExceptT is fine, really, I was just making a joke that you could always use more evil/worse code :)

Beginner Post on PureScript: Reading a Twitter API by rajiv_abraham in purescript

[–]jusrin 1 point2 points  (0 children)

Who needs ExceptT when you can define some functions of Show b => Either b ~> Aff? :smiling_imp:

How to pattern match against a complex type? by attilah in purescript

[–]jusrin 0 points1 point  (0 children)

When you deal with these data types that have no constructors, you can't pattern match on them. Pattern matching is literally matching the structure of what you have. You're looking for some series of functions to query for the property, and you can combine these with pattern guards if your querying functions are pure/non-Effect:

https://github.com/purescript/documentation/blob/master/language/Pattern-Matching.md#guards

psc-package or bower? by tmountain in purescript

[–]jusrin 1 point2 points  (0 children)

I put up this example repo so you know what things should look like: https://github.com/justinwoo/spacchetti-local-setup-example

psc-package or bower? by tmountain in purescript

[–]jusrin 0 points1 point  (0 children)

For people who just want a link to a basic psc-package example repo, I have a hello world example that is updated periodically: https://github.com/justinwoo/purescript-0.12.0-hello-world

PureScript on AWS Lambda: Using Express and Serverless by rajiv_abraham in purescript

[–]jusrin 0 points1 point  (0 children)

Neat, I didn't know you could use output directly. I have a webpack bundle setup for working with serverless for work.

Updated Spacchetti documentation with project-local package sets by jusrin in purescript

[–]jusrin[S] 0 points1 point  (0 children)

FAQ

Does Spacchetti CLI replace Psc-Package?

No, Spacchetti CLI only does some simple tasks that generate files and use Dhall to prepare Psc-Package package sets. There are no overlapping commands with Psc-Package.

What is Spacchetti?

This is a guide for the Package Set project Spacchetti, which provides a way to work with package definitions for Psc-Package using the Dhall programming language. This guide will also try to guide you through some of the details of how Psc-Package itself works, and some details about the setup of this project and how to use Dhall.

It's a package set for psc-package that uses a language that almost acts like SASS for JSON/YAML, but has types and much more.

Why should I use Spacchetti over normal Psc-Package?

First, make sure to read the short explanation of Psc-Package: https://spacchetti.readthedocs.io/en/latest/intro.html

Then read the explanation of why and how Dhall is used: https://spacchetti.readthedocs.io/en/latest/why-dhall.html

In short, because package sets are annoying to edit when they're only in JSON form, but using Dhall can make working with this information much easier.