mit-3qvpPyAi6mH-6: src/Mit/Seq.hs
module Mit.Seq where
import Data.Sequence
pattern NonEmpty :: Seq a
pattern NonEmpty <- _ :<| _
{-# COMPLETE Empty, NonEmpty #-}
pattern Singleton :: Seq a
pattern Singleton <- _ :<| Empty
module Mit.Seq where
import Data.Sequence
pattern NonEmpty :: Seq a
pattern NonEmpty <- _ :<| _
{-# COMPLETE Empty, NonEmpty #-}
pattern Singleton :: Seq a
pattern Singleton <- _ :<| Empty