This file contains hidden or 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 Automaton | |
import Dict | |
import Graphics.Element exposing (show) | |
main = | |
Automaton.step 5 factorialAutomaton |> snd |> show |
This file contains hidden or 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
import Math.Vector3 (vec3) | |
import Math.Vector4 (..) | |
import Math.Matrix4 (..) | |
import Graphics.WebGL (..) | |
-- Create a cube in which each vertex has a position and color | |
type Vertex = | |
{ color:Vec4 |
This file contains hidden or 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
import WebSocket as WS | |
inputs = constant "" | |
socket = WS.connect "ws://127.0.0.1" inputs | |
tests = count socket | |
main = (\a b-> asText a `above` asText b) <~ socket ~ tests |
This file contains hidden or 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 OverloadedStrings #-} | |
module Socket where | |
import Control.Monad.Trans (MonadIO(liftIO)) | |
import Control.Monad (forever) | |
import Control.Concurrent (threadDelay, forkIO) | |
import Control.Exception (catch, SomeException) | |
import qualified Data.ByteString.Char8 as BSC | |
import qualified Filesystem.Path.CurrentOS as FP | |
import qualified Network.WebSockets as WS |
This file contains hidden or 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
import Mouse | |
import Signal.InputGroups as InputGroups | |
import Program | |
import Menu | |
-- State tracking code to see which of Program or Menu is open: | |
type State = {menuOpen : Bool} |
This file contains hidden or 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 ElmTest.Assertion as A | |
import ElmTest.Run as R | |
import ElmTest.Runner.Console (runDisplay) | |
import ElmTest.Test (..) | |
import IO.IO (..) | |
import IO.Runner (Request, Response) | |
import IO.Runner as Run |