Skip to content

Instantly share code, notes, and snippets.

Christof Schramm schrammc

View GitHub Profile
@schrammc
schrammc / unions.hs
Last active Dec 31, 2019
Haskell Open Unions without overlapping instances.
View unions.hs
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE RankNTypes #-}
@schrammc
schrammc / Main.hs
Created May 29, 2015
Minimal FRP example
View Main.hs
import FRP.Sodium
import FRP.Sodium.IO
import System.Exit (exitSuccess)
import Control.Applicative ((<$>))
import Control.Monad (forever)
import Control.Concurrent
import Control.Monad
import System.Timeout
You can’t perform that action at this time.