sequence-0.9.9.0: A type class for sequences and various sequence data structures.
Safe HaskellTrustworthy
LanguageHaskell2010

Data.Sequence.FastQueue.Internal.Any

Description

It's safe to coerce to Any as long as you don't coerce back. We define our own Any instead of using the one in GHC.Exts directly to ensure that this module doesn't clash with one making the opposite assumption. We use a newtype rather than a closed type family with no instances because the latter weren't supported until 8.0.

Synopsis

Documentation

data Any Source #

toAny :: a -> Any Source #

Convert anything to Any.

toAnyList :: [a] -> [Any] Source #

Convert a list of anything to a list of Any.