Skip to content

Instantly share code, notes, and snippets.

View Quelklef's full-sized avatar
🌷

maynard Quelklef

🌷
View GitHub Profile
-- Maps input string to leftover string
type Reg = String -> String
-- Literal match
lit :: String -> Reg
lit s (s ++ s') = s'
-- Optional; regex EXPR?
opt :: Reg -> Reg