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
{- 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)) |