title: Building Gathering: A Website For Announcing Group Events route: building-gathering authors: Gil date: 2017-04-25 tags: haskell, web, fp, spock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{- | An EDSL for defining and printing JSON values | |
-} | |
import Data.List (intercalate) | |
---------------- | |
-- JSON Model -- | |
---------------- | |
-- | The JSONValue data type represents a JSON Value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE DeriveDataTypeable #-} | |
{-# LANGUAGE LambdaCase #-} | |
import Control.Monad | |
import Data.Data | |
import Data.Typeable | |
import System.IO | |
import System.Exit | |
type Stack = [Lit] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Prelude (($), (<>)) | |
import Slides | |
import Slides.Remember | |
main = runSlidesAndRemember | |
[ slide "Slides" $ | |
valign | |
[ image "https://gilmi.xyz/static/misc/ducks.gif" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "try-purescript-slides", | |
"license": "BSD-3-Clause", | |
"version": "0.1.0", | |
"ignore": [ | |
"**/.*", | |
"node_modules", | |
"bower_components", | |
"test", | |
"tests", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE LambdaCase #-} | |
-- http://gilmi.xyz/post/2016/10/14/lisp-to-js | |
module Main where | |
import Control.Applicative (Alternative, empty, (<|>)) | |
import Control.Arrow (first, (***)) | |
import Data.Bool (bool) | |
import Data.List (intercalate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Prelude | |
import Data.Lens | |
import Data.Array | |
import Data.Maybe | |
import Math | |
import Data.Foldable | |
import Data.Traversable |