Skip to content

Instantly share code, notes, and snippets.

module Main where
import Prelude
import Control.Monad.Eff.Console (logShow)
import Data.Maybe (Maybe(..))
import Data.Either (Either(..))
import TryPureScript
main = render =<< withConsole do
@leighman
leighman / Main.purs
Last active April 9, 2023 18:21 — forked from oxbowlakes/3nightclubs.scala
A Tale of 3 Nightclubs
module Main where
import Prelude
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Console (CONSOLE, logShow)
import Data.Either (Either(..))
import Data.Foldable (elem, notElem)
import Data.Int (toNumber)
import Data.Traversable (traverse)
import Data.Validation.Semigroup (invalid)
@leighman
leighman / Main.purs
Last active February 13, 2017 23:36 — forked from sirreal/Main.purs
20 intermediate purescript exercises solutions
module Main where
import Prelude
import Data.List
import Data.Either (Either(..))
import Data.Maybe (Maybe(..))
import Data.Newtype (class Newtype, unwrap)
import Data.Tuple (Tuple(..), fst, snd)
class Fluffy f where
### Keybase proof
I hereby claim:
* I am leighman on github.
* I am leighman (https://keybase.io/leighman) on keybase.
* I have a public key whose fingerprint is C59A 4865 6BA9 FF75 0E2F 52CC 7891 8921 0B05 69E0
To claim this, I am signing this object: