Skip to content

Instantly share code, notes, and snippets.

@mmakowski
mmakowski / Automata.hs
Created November 16, 2011 21:12 — forked from petermarks/Automata.hs
Automata
{- requires -XArrows -}
module Automata where
import Prelude hiding (id, (.))
import Control.Category
import Control.Arrow
import qualified Data.Map as M
import Data.List (sort)
data Automaton b c = Automaton (b -> (c, Automaton b c))