Skip to content

Instantly share code, notes, and snippets.

View previous-package-list.json
{"purescript-ace":["0.10.1","0.9.0"],"purescript-ace-halogen":["0.4.0"],"purescript-aff":["0.11.0","0.11.1","0.11.2","0.11.3","0.12.0","0.13.0","0.13.1","0.14.0"],"purescript-aff-coroutines":["0.2.1","0.3.0","0.4.0","0.4.1","0.4.2"],"purescript-affjax":["0.10.0","0.10.1","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.6.0","0.7.0","0.8.0","0.8.1","0.9.0"],"purescript-ansi":["0.1.0","0.1.1","0.1.2","0.1.3"],"purescript-apparch":["0.1.0"],"purescript-argonaut-codecs":["0.5.0","0.5.1","0.5.2","0.6.0","0.6.1"],"purescript-argonaut-core":["0.2.2","0.2.3"],"purescript-argonaut-traversals":["0.6.0","0.7.0"],"purescript-arrays":["0.4.0","0.4.1","0.4.2","0.4.3","0.4.4"],"purescript-arrows":["0.6.0","0.6.1","0.6.2"],"purescript-assert":["0.1.0","0.1.1"],"purescript-base64":["2.0.1","2.0.2"],"purescript-batteries":["0.2.2","0.2.3","0.2.4","0.2.5","0.3.0","0.4.0","0.5.0","0.5.1"],"purescript-behaviors":["0.1.0"],"purescript-benchotron":["2.1.0","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4"],"purescript-bifunctors":["0.4.0"],"puresc
View pursuit-data.json
[{"packageName":"purescript-aff","versions":["0.11.0","0.11.1","0.11.2","0.11.3","0.12.0","0.13.0","0.13.1","0.14.0"]},{"packageName":"purescript-aff-coroutines","versions":["0.2.1","0.3.0","0.4.0","0.4.1","0.4.2"]},{"packageName":"purescript-affjax","versions":["0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.6.0","0.7.0","0.8.0","0.8.1","0.9.0","0.10.0","0.10.1"]},{"packageName":"purescript-arrays","versions":["0.4.0","0.4.1","0.4.2","0.4.3","0.4.4"]},{"packageName":"purescript-arrows","versions":["0.6.0","0.6.1","0.6.2"]},{"packageName":"purescript-assert","versions":["0.1.0","0.1.1"]},{"packageName":"purescript-batteries","versions":["0.2.2","0.2.3","0.2.4","0.2.5","0.3.0","0.4.0","0.5.0","0.5.1"]},{"packageName":"purescript-benchotron","versions":["2.1.0","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4"]},{"packageName":"purescript-bifunctors","versions":["0.4.0"]},{"packageName":"purescript-bigints","versions":["0.1.0","0.2.0","0.2.1"]},{"packageName":"purescript-canvas","versions":["0.3.0","0.3.1","0.3.2","0.3.3","0.
View Main.purs
module Main where
import Prelude
import Control.Bind ((=<<))
import Control.Monad (when)
import Control.Monad.Eff (Eff())
import Control.Monad.Eff.Var (($=), get, Var(), makeVar)
import Control.Monad.Eff.Console (CONSOLE(), log)
import Control.Monad.Eff.Console.Unsafe (logAny)
View arrays.docs.patch
diff --git a/docs/Data/Array.md b/docs/Data/Array.md
index 4e4a3d9..8bd12a4 100644
--- a/docs/Data/Array.md
+++ b/docs/Data/Array.md
@@ -101,6 +101,8 @@ termination.
null :: forall a. Array a -> Boolean
```
+Test whether an array is empty.
+
View Neon.md

Module Neon

Re-exported from Neon.Class:

Add

class Add a where
  add :: a -> a -> a
View thoughts-on-reexports.md

Re-exports + documentation

  • If values are re-exported from an "internal" module, then should they be hidden?

    • A: only if we also are hiding "internal" modules, which we're not
    • "internal" modules might not be a good idea anyway (cf. cabal)
  • If a whole, real module is re-exported, should we list everything, or just link to it?

    • list everything, pros:
View ffi.js
exports["concatStream'"] = function concatStream$prime(stream, callback) {
var concat = require("concat-stream");
var onSuccess = function(str) {
console.log("debug: hi, success");
callback(null, str);
};
var onError = function(err) {
console.log("debug: hi, err");
View gist:f9c351a218ec5e911c6a
> let f c = if c then Nothing else Just false
> let x = Just true
> let y = Just false
> (x <|> y) >>= f
Nothing
> (x >>= f) <|> (y >>= f)
Just (false)
@hdgarrood
hdgarrood / purescript-prelude.txt
Created Jun 16, 2015
An example Hoogle file, using the PureScript prelude
View purescript-prelude.txt
@package purescript-prelude
@version 999.1.0
module Prelude where
-- | <p>The <code>Unit</code> type has a single inhabitant, called <code>unit</code>. It represents
-- | values with no computational content.</p>
-- | <p><code>Unit</code> is often used, wrapped in a monadic type constructor, as the
-- | return type of a computation where only
-- | the <em>effects</em> are important.</p>
View week-1.markdown

Pursuit GSOC: Week 1

I'm going keeping a blog of progress on my Google Summer of Code project this summer, which is various enhancements to the PureScript code search tool Pursuit.

I have managed to get quite a bit done already, since I had been contributing to PureScript (and Pursuit in particular) for a while before I even applied for Google Summer of Code. So, for the first entry, I'm just going to go over what's been done so far:

You can’t perform that action at this time.