Skip to content

Instantly share code, notes, and snippets.

@atondwal
atondwal / lisp.hs
Last active April 2, 2016 01:37 — forked from Peaker/lisp.hs
Minimal Lisp in Haskell
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MonadComprehensions #-}
{-# LANGUAGE LambdaCase #-}
import Control.Applicative
import Control.Monad.State.Strict
import Data.Function (on)
import Data.Foldable (foldrM)
import Data.Attoparsec