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