Skip to content

Instantly share code, notes, and snippets.

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 gist:f9c351a218ec5e911c6a
> let f c = if c then Nothing else Just false
> let x = Just true
> let y = Just false
> (x <|> y) >>= f
> (x >>= f) <|> (y >>= f)
Just (false)
hdgarrood / solarized_light.xml
Created Apr 4, 2012
Notepad++ colorscheme -- solarized light
View solarized_light.xml
Solarized (light)
Copyright (c) 2008 Fabio Zendhi Nagao <>
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
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");

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:

Module Neon

Re-exported from Neon.Class:


class Add a where
  add :: a -> a -> a
hdgarrood /
Last active Jan 2, 2016
Phone requirements


  • Calls
  • Texts
  • T9 (unless qwerty)
  • Alarm clock
  • No touchscreen!


diff --git a/docs/Data/ b/docs/Data/
index 4e4a3d9..8bd12a4 100644
--- a/docs/Data/
+++ b/docs/Data/
@@ -101,6 +101,8 @@ termination.
null :: forall a. Array a -> Boolean
+Test whether an array is empty.
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 pursuit-data.json