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
#!/usr/bin/env stack | |
{- | |
stack script | |
--resolver lts-13.29 --install-ghc | |
--package base | |
--package shake | |
--package hspec | |
--package getopt-generics | |
-} |
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
#!/usr/bin/env bash | |
set -o errexit | |
yarn add flow-bin flow-typed validated lodash | |
./node_modules/.bin/flow-typed install || true | |
flow |
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
<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); |
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 DataKinds #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TypeOperators #-} | |
import Data.Typeable | |
import GHC.TypeLits | |
import Servant.API | |
import Test.Hspec |
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
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 | |
- |
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
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) { |
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 DataKinds #-} | |
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE InstanceSigs #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
module Servant.Server.UsingConfigSpec where |
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
flags: {} | |
packages: | |
- location: ./. | |
- location: /home/shahn/src/servant | |
subdirs: | |
- servant | |
- servant-client | |
extra-dep: true | |
- location: /home/shahn/src/crdt-tree-vector |
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 Data.Map (insert) | |
import Reflex.Dom | |
main :: IO () | |
main = do | |
mainWidget $ el "div" $ do | |
value <- _textArea_input <$> textArea def |
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 | |
data Token : Type where | |
C : String -> Token | |
I : Token | |
S : Token | |
infixr 9 :> | |
instance Show Token where | |
show t = case t of |
NewerOlder