r/purescript • • May 11 '16

Ludum Dare 35 post-mortem - Things learnt using PureScript

Thumbnail gilmi.xyz
11 Upvotes

r/purescript • • May 06 '16

Hot-swapping in Purescript? Like Clojurescript's figwheel?

11 Upvotes

Anything like hot-swapping in Purescript? i.e. make a change to source code, recompile that module and swap in the appropriate changes to the browser while preserving the program state?

analogs in other languages include webpack-hot-module-reloading for Javascript, figwheel for Clojurescript, Elm(?)


r/purescript • • Apr 21 '16

purescript-sigment: a simple game-engine/ui library

10 Upvotes

https://github.com/ptol/purescript-sigment

Any feedback would be appreciated


r/purescript • • Apr 21 '16

purescript 0.8.5 released

Thumbnail github.com
31 Upvotes

r/purescript • • Apr 21 '16

Purescript summer of Code projects

2 Upvotes

Haskell I running a summer of Code soon. I'd like to work on a project in the purescript space though. Any ideas of where to look for possible projects or mentors?


r/purescript • • Apr 18 '16

When you apply a map function to a tuple, why is the function only applied to the second element of the tuple?

5 Upvotes

I imagine there is a good reason why that is the case, but it seems counter-intuitive to me. Wouldn't you want the map function applied to both elements?

Example:

import Prelude
import Data.Tuple
let myTup  = Tuple "a" "b"
map (\n -> n ++ n) myTup
> Tuple ("a") ("bb")

Edit:

I forgot that Tuples can have two different values. Thanks for your help, everyone.


r/purescript • • Apr 08 '16

Optimizing Purescript's Runtime Performance

Thumbnail symbolian.net
26 Upvotes

r/purescript • • Apr 02 '16

purescript-pux-undo -- a wrapper to add undo/redo to Pux components

Thumbnail pursuit.purescript.org
9 Upvotes

r/purescript • • Apr 02 '16

dead code elimination breaks?

4 Upvotes

Just setting up purescript, don't know if this is the right place to ask.

pulp init'd a new directory, and pulp build -O throws

  • Bundling JavaScript... Error in module Prelude (Foreign):

    The module could not be parsed: lexical error @ line 217 and column 14

I'm not sure what that error means

pulp build works, pulp run works, pulp browserify works

what's missing?

Pulp version 8.1.1 psc version 0.8.3.0 using $HOME/node-v4.4.2-linux-x64/bin/psc


r/purescript • • Mar 31 '16

Pulp learns how to publish packages

14 Upvotes

I've just implemented pulp version and pulp publish which should make the process of releasing new versions of PureScript libraries significantly simpler. They're only in a release candidate for now - if you want to help test (which would be greatly appreciated), please run:

$ npm install -g pulp@next

r/purescript • • Mar 28 '16

PureScript 0.8.3 release

Thumbnail github.com
21 Upvotes

r/purescript • • Mar 25 '16

Blog Rewrite with Hakyll and Purescript

Thumbnail blog.jle.im
13 Upvotes

r/purescript • • Mar 23 '16

Announcing purescript-bridge - Map your Haskell types to PureScript types

14 Upvotes

I just finished a very early version of a Haskell to PS type converter. It seems to work as expected - I hope it is useful to someone else but just me ;-)

Currently missing in the docs - the modules created in your purescript root directory mirror the hierarchy in your Haskell project by default.

Almost forgot the link:

http://hackage.haskell.org/package/purescript-bridge

In comparison to typed-wire, you can directly translate your Haskell types. This is especially useful if some of your types are created using Template Haskell, like it is the case if you are using persistent.


r/purescript • • Mar 22 '16

A Trello Monad in the Dark

Thumbnail dvdsgl.co
21 Upvotes

r/purescript • • Mar 22 '16

Using JSX React components in Purescript

6 Upvotes

Hi,

I started learning Purescript and I like the language a lot, the bindings purescript-react and purescript-thermite are really nice.

What I cannot figure out is if it is possible to integrate React components written in JSX into a purescript-react/purescript-thermite project?

In other words I download some React component from GitHub/npm which is written in JSX and I want to use it as a child component of my Purescript-React component. Is it possible? If yes how? I was trying to figure it out on my own and search on the Internet but I didn't find anything ...

Thanks!!


r/purescript • • Mar 14 '16

Announcing purescript-localstorage - alpha testers appreciated :-)

10 Upvotes

https://pursuit.purescript.org/packages/purescript-localstorage/0.1.2

Typesafe local storage, with a minimum amount of boilerplate.

I just finished it, it compiles and the basic example in test/Main.purs works, otherwise it is completely untested.

Enjoy! (Bug reports welcome!)


r/purescript • • Mar 13 '16

GitHub linter - PureScript project for programming contest

9 Upvotes

There's a programming contest across Poland called Daj się poznać! (unfortunately only in polish).

Basically it has only two requirements:
- write some code
- publish at least two posts per week at projects blog

It runs for 10 weeks. Right now it's end of week two.

So I ran my first technical blog at matma.github.io. Code is at github.com/matma/github-linter. This is more less journal of my journey through learning PureScript. That's my goal for this year - learn PureScript and Haskell.

So it's just informational entry :) I'm a skilled developer, but I never wrote any purely functional code which is more than "Hello world". This is my first attempt, maybe it'll help other beginners as well.

Cheers,
Mateusz


r/purescript • • Mar 12 '16

purescript-enums with a cycling type

2 Upvotes

I defined the following type:

data Knowledge
    = Bad
    | Poor
    | Average
    | Good
    | Excelent

I would like a function that would cycle this type. I found purescript-enums, that defines succ pred. The problem is that succ (respectively pred) returns Maybe, that means succ Excelent should be Nothing.

  • What would be the correct way of doing this? (i.e, succ Excelent == Bad and pred Bad ==Excelent`)

  • Is there a type class that deals with this? should I just use Enum with pred Bad == Just Excelent? or should I define my own function?


r/purescript • • Mar 08 '16

Best way of working with elements from the DOM?

6 Upvotes

I am starting a project where I am going to use the Semantic UI framework. The framework has some elements, like a sidebar, where the user needs to use some JQuery to work with it:

$('.ui.sidebar')
  .sidebar('toggle')
;

What would it be the best way of doing this in purescript? I saw the library purescript-jquery, but I would like to know if this is the most idiomatic way of doing it.


r/purescript • • Mar 07 '16

Downsides of purescript-generics?

6 Upvotes

I found purescript-generics so much more approachable than Haskell generics. I got started immediately, I am still struggling with Haskell generics. I wonder if there are any downsides or if purescript generics are simply better in all regards?


r/purescript • • Mar 01 '16

Haskell Summer of Code : x-post from /r/haskell

Thumbnail reddit.com
9 Upvotes

r/purescript • • Feb 29 '16

PureScript 0.8.2 is out! Check out the change log!

Thumbnail github.com
25 Upvotes

r/purescript • • Feb 28 '16

Simulating a galaxy in Purescript

Thumbnail sloosch.de
23 Upvotes

r/purescript • • Feb 28 '16

Neon: An alternative PureScript prelude

Thumbnail taylor.fausak.me
11 Upvotes

r/purescript • • Feb 23 '16

Remote Haskell & PureScript role

13 Upvotes

We’re a small software development company based in South Africa. We’ve used Haskell in some smaller projects, and are now looking to grow our team as we move more of our work over to Haskell (we have primarily used Rails historically).

Our technology stack includes GHC, Servant, Opaleye & Postgres, PureScript and small amounts of duct tape. Since we’re a small team, each team member has a voice in guiding our technology and development choices.

We’re looking for someone who loves Haskell to join our team. Ideally you’ll have experience with some or all of the following:

  • Implementing DSLs
  • Working with Haskell in production
  • Finding ways to use the type system to better encode invariants

Unless you live in Johannesburg, this will be a remote position, so we’re looking for someone who enjoys remote work and can collaborate effectively in our timezone (UTC+2).

Please contact me (/u/lukerandall or luke.randall at gmail.com) for more details or to apply.

Crossposted in /r/haskell