Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env stack
{-
stack script
--resolver lts-13.29 --install-ghc
--package base
--package shake
--package hspec
--package getopt-generics
-}
#!/usr/bin/env bash
set -o errexit
yarn add flow-bin flow-typed validated lodash
./node_modules/.bin/flow-typed install || true
flow
<html>
<body id="main">
hi
<script src="sound.js"></script>
<script>
/*
var node = document.getElementById('main');
console.log(node);
var app = Elm.Main.embed(node);
console.log(app.ports.eval);
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
import Data.Typeable
import GHC.TypeLits
import Servant.API
import Test.Hspec
@soenkehahn
soenkehahn / -
Last active May 4, 2016 02:54
servant changes v0.7..v0.6
diff --git a/servant-docs/CHANGELOG.md b/servant-docs/CHANGELOG.md
index d40dc68..44ce069 100644
--- a/servant-docs/CHANGELOG.md
+++ b/servant-docs/CHANGELOG.md
@@ -1,8 +1,3 @@
-0.7
----
-
-* Use `throwError` instead of `throwE` in documentation
-
package shahn.test;
import java.util.function.BiFunction;
import java.util.function.Function;
public class Fix<X, Y> {
Function<X, Y> result;
public static <A, B> Function<A, B> fix(BiFunction<Function<A, B>, A, B> f) {
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
module Servant.Server.UsingConfigSpec where
flags: {}
packages:
- location: ./.
- location: /home/shahn/src/servant
subdirs:
- servant
- servant-client
extra-dep: true
- location: /home/shahn/src/crdt-tree-vector
module Main where
import Data.Map (insert)
import Reflex.Dom
main :: IO ()
main = do
mainWidget $ el "div" $ do
value <- _textArea_input <$> textArea def
module Main
data Token : Type where
C : String -> Token
I : Token
S : Token
infixr 9 :>
instance Show Token where
show t = case t of